diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2013-03-20 18:21:26 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2013-03-20 18:21:26 +0100 |
commit | 617a0b89da4898d4cc990c9eb4bc9c0591c538a5 (patch) | |
tree | 3629d4f8f456dd630c5293da6b3e5b3a0c8d4b75 /drivers/of/of_pci.c | |
parent | dm cache: avoid 64 bit division on 32 bit (diff) | |
download | linux-617a0b89da4898d4cc990c9eb4bc9c0591c538a5.tar.xz linux-617a0b89da4898d4cc990c9eb4bc9c0591c538a5.zip |
dm cache: detect cache_create failure
Return error if cache_create() fails.
A missing return check made cache_ctr continue even after an error in
cache_create() resulting in the cache object being destroyed. So a
simple failure like an odd number of cache policy config value arguments
would result in an oops.
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/of/of_pci.c')
0 files changed, 0 insertions, 0 deletions