bcache: Fix a null ptr deref regression
authorKent Overstreet <kmo@daterainc.com>
Fri, 11 Oct 2013 00:31:15 +0000 (17:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2013 23:08:35 +0000 (16:08 -0700)
commit84c8b3b9e17107a74f07dc5e48264034f1410b97
tree92714f1610b72010aa6d0771a70ec3feb5342506
parentadf0931b2b3ce91cc4096939650f4c4a3f68fef5
bcache: Fix a null ptr deref regression

commit 2fe80d3bbf1c8bd9efc5b8154207c8dd104e7306 upstream.

Commit c0f04d88e46d ("bcache: Fix flushes in writeback mode") was fixing
a reported data corruption bug, but it seems some last minute
refactoring or rebasing introduced a null pointer deref.

Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Reported-by: Gabriel de Perthuis <g2p.code@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/bcache/request.c