[dm-devel] [PATCH -next] dm cache: fix error return code in cache_create()

Alasdair G Kergon agk at redhat.com
Thu Apr 25 20:30:36 UTC 2013


On Fri, Apr 19, 2013 at 01:11:30PM +0800, Wei Yongjun wrote:
> Fix to return -ENOMEM in the memory alloc error handing
> cases instead of 0, as done elsewhere in this function.
 
Otherwise it dereferences a NULL pointer...

Queued.

Alasdair




More information about the dm-devel mailing list