]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid5: protect debug message against NULL derefernce.
authorNeilBrown <neilb@suse.de>
Tue, 25 Sep 2012 07:00:44 +0000 (17:00 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 25 Sep 2012 07:00:44 +0000 (17:00 +1000)
commit8007c32261351afd5f2eb64f9e21e1cb2beaa235
tree62a5657c923f0a7b5827239afde34780cf6f8ad3
parent270da570de744bf0323ae35efb22f4c46eb1026a
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