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)
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


No differences found