diff options
| -rw-r--r-- | drivers/block/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index b336433f8157..c2ce03cf3a58 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
| @@ -1583,7 +1583,7 @@ static int lo_release(struct gendisk *disk, fmode_t mode) | |||
| 1583 | * In autoclear mode, stop the loop thread | 1583 | * In autoclear mode, stop the loop thread |
| 1584 | * and remove configuration after last close. | 1584 | * and remove configuration after last close. |
| 1585 | */ | 1585 | */ |
| 1586 | err = loop_clr_fd(lo, NULL); | 1586 | err = loop_clr_fd(lo, lo->lo_device); |
| 1587 | if (!err) | 1587 | if (!err) |
| 1588 | goto out_unlocked; | 1588 | goto out_unlocked; |
| 1589 | } else { | 1589 | } else { |
