diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index 81ac8fd53340255aef47020978e4b667b6dd99cb..0abcf4a31c786ca09ab03596ac0752be23c948dd 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -810,7 +810,7 @@ static ssize_t reset_store(struct device *dev, mutex_lock(&bdev->bd_mutex); /* Do not reset an active device! */ - if (bdev->bd_holders) { + if (bdev->bd_openers) { ret = -EBUSY; goto out; }