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
Apparently Analagous Threads
- extent_io.c: bio_add_page() error check for bio ptr
- [PATCH] drm: virtio: fix kmem_cache_alloc error check
- [PATCH] drm: virtio: fix kmem_cache_alloc error check
- reversing the effects of mkfs.btrfs?
- [PATCH] Btrfs: check return value for kthread_run() correctly