bcache: Fix a null ptr deref regression
authorKent Overstreet <kmo@daterainc.com>
Fri, 11 Oct 2013 00:31:15 +0000 (17:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Oct 2013 01:17:39 +0000 (18:17 -0700)
commit2fe80d3bbf1c8bd9efc5b8154207c8dd104e7306
tree729b2f1de3b8bf8eb96e1640c415b8d0c3b5fe1c
parente3e8ded06f0960d642a81dd676fff0367af68ba0
bcache: Fix a null ptr deref regression

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>
Cc: linux-stable <stable@vger.kernel.org> # >= v3.10
Reported-by: Gabriel de Perthuis <g2p.code@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/bcache/request.c