Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Kent Overstreet and committed by
Linus Torvalds
2fe80d3b e3e8ded0

+1 -2
+1 -2
drivers/md/bcache/request.c
··· 996 996 closure_bio_submit(bio, cl, s->d); 997 997 } else { 998 998 bch_writeback_add(dc); 999 + s->op.cache_bio = bio; 999 1000 1000 1001 if (bio->bi_rw & REQ_FLUSH) { 1001 1002 /* Also need to send a flush to the backing device */ ··· 1009 1008 flush->bi_private = cl; 1010 1009 1011 1010 closure_bio_submit(flush, cl, s->d); 1012 - } else { 1013 - s->op.cache_bio = bio; 1014 1011 } 1015 1012 } 1016 1013 out: