summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-10 14:37:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-19 11:38:17 -0700
commit3dc73aa4030321924423ebc662dcf6f382fef5b3 (patch)
treec8b02a37023e20b40c5caf141cf7e6c96582cca9 /include
parent62253ab07cbbb924ba69cbb4e050b42b008a6884 (diff)
dm cache: fix error return code in cache_create
commit fa4d683af3693863bec761e2761a07e4c1351f86 upstream. 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> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions