From: Wei Yongjun Date: Fri, 10 May 2013 13:37:14 +0000 (+0100) Subject: dm cache: fix error return code in cache_create X-Git-Tag: v3.10-rc1~12^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa4d683af3693863bec761e2761a07e4c1351f86;p=pandora-kernel.git 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 Cc: stable@vger.kernel.org Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed