diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c index 5de1f5390138..7eb983c3d36e 100644 --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c @@ -811,7 +811,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; }