From: Daniel Hokka Zakrisson Date: Wed, 15 Aug 2007 18:07:27 +0000 (+0000) Subject: Reset the xid when freeing the device X-Git-Tag: linux-2.6-22-1~30 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=822c7ed9c7fced54e56806f5bc82dcb06dadd26e;p=linux-2.6.git Reset the xid when freeing the device --- diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 99e9c5655..6b153fbb8 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -916,6 +916,7 @@ static int loop_clr_fd(struct loop_device *lo, struct block_device *bdev) lo->lo_encrypt_key_size = 0; lo->lo_flags = 0; lo->lo_thread = NULL; + lo->lo_xid = 0; memset(lo->lo_encrypt_key, 0, LO_KEY_SIZE); memset(lo->lo_crypt_name, 0, LO_NAME_SIZE); memset(lo->lo_file_name, 0, LO_NAME_SIZE);