bcache: fix memory corruption in init error path
authorSlava Pestov <sp@daterainc.com>
Thu, 19 Jun 2014 22:05:59 +0000 (15:05 -0700)
committerKent Overstreet <kmo@daterainc.com>
Mon, 4 Aug 2014 22:23:04 +0000 (15:23 -0700)
commitc9a78332b42cbdcdd386a95192a716b67d1711a4
tree425e035b57317fa9730d717352cee12ab2c8bccd
parentbf0c55c986540483c34ca640f2eef4c3314388b1
bcache: fix memory corruption in init error path

If register_cache_set() failed, we would touch ca->set after
it had already been freed. Also, fix an assertion to catch
this.

Change-Id: I748e5f5b223e2d9b2602075dec2f997cced2394d
drivers/md/bcache/super.c
This page took 0.030452 seconds and 5 git commands to generate.