Merge tag 'iomap-5.13-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux-2.6-microblaze.git] / drivers / scsi / scsi_debug.c
index 4a08c45..3cdeaeb 100644 (file)
@@ -853,7 +853,7 @@ static const int illegal_condition_result =
        (DRIVER_SENSE << 24) | (DID_ABORT << 16) | SAM_STAT_CHECK_CONDITION;
 
 static const int device_qfull_result =
-       (DID_OK << 16) | (COMMAND_COMPLETE << 8) | SAM_STAT_TASK_SET_FULL;
+       (DID_OK << 16) | SAM_STAT_TASK_SET_FULL;
 
 static const int condition_met_result = SAM_STAT_CONDITION_MET;
 
@@ -6881,6 +6881,7 @@ static void __exit scsi_debug_exit(void)
 
        sdebug_erase_all_stores(false);
        xa_destroy(per_store_ap);
+       kfree(sdebug_q_arr);
 }
 
 device_initcall(scsi_debug_init);