diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index a5286beddcf5..b6d16022a53e 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -4592,6 +4592,8 @@ void md_error(mddev_t *mddev, mdk_rdev_t *rdev) | |||
4592 | __builtin_return_address(0),__builtin_return_address(1), | 4592 | __builtin_return_address(0),__builtin_return_address(1), |
4593 | __builtin_return_address(2),__builtin_return_address(3)); | 4593 | __builtin_return_address(2),__builtin_return_address(3)); |
4594 | */ | 4594 | */ |
4595 | if (!mddev->pers) | ||
4596 | return; | ||
4595 | if (!mddev->pers->error_handler) | 4597 | if (!mddev->pers->error_handler) |
4596 | return; | 4598 | return; |
4597 | mddev->pers->error_handler(mddev,rdev); | 4599 | mddev->pers->error_handler(mddev,rdev); |