]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
md: raid10: fix use-after-free of bio
authorMaik Hampel <m.hampel@gmx.de>
Tue, 31 Jul 2007 07:37:57 +0000 (00:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 31 Jul 2007 22:39:38 +0000 (15:39 -0700)
commit14e713446aaca97dbe590fe845f7dcbd74ddbee2
tree530c21e7a5c7fa890193765f235dd9360fc54eed
parentbfe0d6867e36f46836d2c3755fa8b9ef8cf143ba
md: raid10: fix use-after-free of bio

In case of read errors raid10d tries to print a nice error message,
unfortunately using data from an already put bio.

Signed-off-by: Maik Hampel <m.hampel@gmx.de>
Acked-By: NeilBrown <neilb@suse.de>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/raid10.c