Douglas Gilbert d467d31f70 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.

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2014-12-15 13:34:24 +01:00
..
2014-11-20 09:11:10 +01:00
2014-12-04 09:58:33 +01:00
2014-12-04 09:58:33 +01:00
2014-08-26 09:35:54 +02:00
2014-12-04 09:57:13 +01:00
2014-08-08 15:57:29 -07:00
2014-12-04 09:58:33 +01:00
2014-11-24 16:13:18 +01:00
2014-11-12 11:16:11 +01:00
2014-07-17 22:07:38 +02:00
2014-11-20 09:11:11 +01:00
2014-07-17 22:07:37 +02:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-11-24 16:13:16 +01:00
2014-11-20 09:11:10 +01:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2014-07-17 22:07:37 +02:00
2014-12-04 09:55:46 +01:00
2014-11-12 11:32:00 +01:00
2013-04-09 14:13:27 -04:00
2014-08-08 15:57:29 -07:00
2013-04-09 14:13:15 -04:00
2014-07-17 22:07:35 +02:00
2014-11-20 09:11:10 +01:00
2014-10-07 21:29:18 -04:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2013-04-09 14:13:17 -04:00
2014-07-25 17:16:55 -04:00
2014-04-10 15:30:35 -07:00
2014-07-17 22:07:37 +02:00
2014-07-17 22:07:37 +02:00
2014-11-12 11:19:14 +01:00
2014-11-12 11:15:57 +01:00
2014-11-12 11:16:11 +01:00
2014-07-17 22:07:39 +02:00
2014-11-12 11:16:11 +01:00
2014-11-12 11:15:57 +01:00
2014-11-12 11:16:12 +01:00
2012-09-14 17:59:29 +01:00
2014-11-20 09:11:15 +01:00
2014-11-20 09:11:10 +01:00
2014-11-20 09:11:10 +01:00
2014-07-17 22:07:37 +02:00
2013-04-09 14:13:15 -04:00
2014-11-27 16:40:16 +01:00