Signed-off-by: Dmitry Monakhov <dmonakhov@xxxxxxxxxx> --- fs/block_dev.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/block_dev.c b/fs/block_dev.c index 172f849..e13d1df 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -228,7 +228,8 @@ struct super_block *freeze_bdev(struct block_device *bdev) * thaw_bdev drops it. */ sb = get_super(bdev); - drop_super(sb); + if (sb) + drop_super(sb); mutex_unlock(&bdev->bd_fsfreeze_mutex); return sb; } -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html