From: Douglas Gilbert Date: Wed, 26 Nov 2014 12:33:48 -0500 Subject: [PATCH] scsi_debug fix compare and write errors Kernel build tools pointed out a memory leak so that has been fixed and its error paths strengthened with a goto. Testing showed compare and write was only working for lba=0; correcting the length of the LBA field fixed that. --- drivers/scsi/scsi_debug.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) Signed-off-by: Douglas Gilbert