summaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/sysfs.c
diff options
context:
space:
mode:
authorSlava Pestov2014-07-13 06:53:11 +0200
committerKent Overstreet2014-08-05 00:23:04 +0200
commit400ffaa2acd72274e2c7293a9724382383bebf3e (patch)
treed9f374a9be6fe1ce88ec1513282dba0980baf49c /drivers/md/bcache/sysfs.c
parentbcache: Fix an infinite loop in journal replay (diff)
downloadkernel-qcow2-linux-400ffaa2acd72274e2c7293a9724382383bebf3e.tar.gz
kernel-qcow2-linux-400ffaa2acd72274e2c7293a9724382383bebf3e.tar.xz
kernel-qcow2-linux-400ffaa2acd72274e2c7293a9724382383bebf3e.zip
bcache: fix use-after-free in btree_gc_coalesce()
If we goto out_nocoalesce after we free new_nodes[0], we end up freeing new_nodes[0] again. This was generating a lockdep warning. The fix is to set new_nodes[0] to NULL, since the out_nocoalesce path safely ignores NULL entries in the new_nodes array. This regression was introduced in 2d7f9531. Change-Id: I76564d7257800583214376b4bacf236cda90c89c
Diffstat (limited to 'drivers/md/bcache/sysfs.c')
0 files changed, 0 insertions, 0 deletions