[Btrfs-devel] kmem_cache_alloc() return value check

Peter Teoh htmldeveloper at gmail.com
Fri Mar 14 21:59:02 PDT 2008


kmem_cache_alloc() only return two possible value:   NULL for error,
and non-NULL for valid pointer.   IS_ERR() check for return value is
not right, I guessed?



-- 
Regards,
Peter Teoh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrong_is_err_check.patch
Type: text/x-patch
Size: 385 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/btrfs-devel/attachments/20080315/6a95c261/wrong_is_err_check.bin


More information about the Btrfs-devel mailing list