mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
dm-raid1.c: fix NULL dereferences
This patch fixes two NULL dereferences introduced by commit
06386bbfd2 and spotted by the Coverity
checker.
Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Alasdair G Kergon <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ae5e1b6cc5
commit
e03f1a8422
1 changed files with 4 additions and 3 deletions
|
|
@ -1695,14 +1695,15 @@ static int mirror_end_io(struct dm_target *ti, struct bio *bio,
|
|||
* information for a retry or there was no other
|
||||
* mirror in-sync.
|
||||
*/
|
||||
DMERR_LIMIT("Mirror read failed from %s.",
|
||||
m->dev->name);
|
||||
DMERR_LIMIT("Mirror read failed.");
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
m = read_record->m;
|
||||
|
||||
DMERR("Mirror read failed from %s. Trying alternative device.",
|
||||
m->dev->name);
|
||||
|
||||
m = read_record->m;
|
||||
fail_mirror(m, DM_RAID1_READ_ERROR);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue