md/raid1: fix a use-after-free bug
authorShaohua Li <shli@fb.com>
Mon, 20 Feb 2017 06:41:27 +0000 (22:41 -0800)
committerShaohua Li <shli@fb.com>
Mon, 20 Feb 2017 06:41:27 +0000 (22:41 -0800)
commitaf5f42a7e426a87bfa69adc9b9d8930385a1ddf6
treeb8c9f89049ad59d48251737800f8d7c70830fec6
parent824e47daddbfc6ebe1006b8659f080620472a136
md/raid1: fix a use-after-free bug

Commit fd76863 (RAID1: a new I/O barrier implementation to remove resync
window) introduces a user-after-free bug.

Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid1.c