Reset the xid when freeing the device
authorDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Wed, 15 Aug 2007 18:07:27 +0000 (18:07 +0000)
committerDaniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Wed, 15 Aug 2007 18:07:27 +0000 (18:07 +0000)
drivers/block/loop.c

index 99e9c56..6b153fb 100644 (file)
@@ -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);