MD: fix a null dereference
authorShaohua Li <shli@fb.com>
Fri, 23 Jun 2017 16:19:49 +0000 (09:19 -0700)
committerShaohua Li <shli@fb.com>
Fri, 23 Jun 2017 16:19:49 +0000 (09:19 -0700)
commit7f053a6a745557b3f3ad63e9d28ba85c3c0b1563
treec327f5b839802de518d105d52783c1ec30dd6a86
parent5a85071c2cbcc7d8d8f764b33bf64c76e47d268d
MD: fix a null dereference

rdev->mddev could be null in start time.

Reported-by: Ming Lei <ming.lei@redhat.com>
Fix: 5a85071c2cbc(md: use a separate bio_set for synchronous IO.)
Cc: NeilBrown <neilb@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/md.c