diff options
| author | Yuanhan Liu <[email protected]> | 2012-05-22 13:55:32 +1000 |
|---|---|---|
| committer | NeilBrown <[email protected]> | 2012-05-22 13:55:32 +1000 |
| commit | 0c098220e2320c1f0c9339d0ff05c5e04672133a (patch) | |
| tree | 5dfe163da6707f93b5bbc77ccb0ec4ee98227591 /drivers/scsi/mpt2sas/mpi/mpi2_init.h | |
| parent | 4f0a5e012cf41321d611e7cad63e1017d143d138 (diff) | |
md: check the return of mddev_find()
Check the return of mddev_find(), since it may fail due to out of
memeory or out of usable minor number.
The reason I chose -ENODEV instead of -ENOMEM or something else is
md_alloc() function chose that ;)
Signed-off-by: Yuanhan Liu <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions