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