[Btrfs-devel] extent_io.c: kmem_cache_alloc() return value check

Peter Teoh htmldeveloper at gmail.com
Fri Mar 14 22:01:38 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_check1.patch
Type: text/x-patch
Size: 412 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/btrfs-devel/attachments/20080315/49d545a9/wrong_is_err_check1.bin


More information about the Btrfs-devel mailing list