Commit bac4650d authored by Jens Axboe's avatar Jens Axboe Committed by Linus Torvalds

[PATCH] loop clear q->queuedata on exit

Just for niceness, loop should clear queue queuedata when it exits.
parent ae5f1b4f
......@@ -806,6 +806,7 @@ static int loop_clr_fd(struct loop_device *lo, struct block_device *bdev)
lo->lo_offset = 0;
lo->lo_encrypt_key_size = 0;
lo->lo_flags = 0;
lo->lo_queue.queuedata = NULL;
memset(lo->lo_encrypt_key, 0, LO_KEY_SIZE);
memset(lo->lo_name, 0, LO_NAME_SIZE);
invalidate_bdev(bdev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment