commit | fa4d683af3693863bec761e2761a07e4c1351f86 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Fri May 10 14:37:14 2013 +0100 |
committer | Alasdair G Kergon <agk@redhat.com> | Fri May 10 14:37:14 2013 +0100 |
tree | 3f3045ed3325ba54673177fb9e4f95892471b252 | |
parent | d793e684277124d55c5d2444007e224635821346 [diff] |
dm cache: fix error return code in cache_create Return -ENOMEM if memory allocation fails in cache_create instead of 0 (to avoid NULL pointer dereference). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Cc: stable@vger.kernel.org Signed-off-by: Alasdair G Kergon <agk@redhat.com>