]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: protect debug message against NULL derefernce.
authorNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:30 +0000 (12:37 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:30 +0000 (12:37 +1000)
commit92661283434f2abaf250415ce8dfc5d50b9c5660
tree573ca5b8023fe777a691cac6f1654e4a7d04a3bd
parent9491965c14d41aa3b262be0cc9f6734a4d811386
md/raid5: protect debug message against NULL derefernce.

The pr_debug in add_stripe_bio could race with something
changing *bip, so it is best to hold the lock until
after the pr_debug.

Reported-by: "Jianpeng Ma" <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c