diff options
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 38a0a5741d52..cb8281605be8 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -4438,8 +4438,7 @@ static int md_release(struct inode *inode, struct file * file) | |||
4438 | { | 4438 | { |
4439 | mddev_t *mddev = inode->i_bdev->bd_disk->private_data; | 4439 | mddev_t *mddev = inode->i_bdev->bd_disk->private_data; |
4440 | 4440 | ||
4441 | if (!mddev) | 4441 | BUG_ON(!mddev); |
4442 | BUG(); | ||
4443 | mddev_put(mddev); | 4442 | mddev_put(mddev); |
4444 | 4443 | ||
4445 | return 0; | 4444 | return 0; |