diff options
Diffstat (limited to 'drivers/scsi/sr.c')
-rw-r--r-- | drivers/scsi/sr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sr.c b/drivers/scsi/sr.c index 7c80711e18e..ebf6579ed69 100644 --- a/drivers/scsi/sr.c +++ b/drivers/scsi/sr.c | |||
@@ -217,7 +217,7 @@ int sr_media_change(struct cdrom_device_info *cdi, int slot) | |||
217 | static void rw_intr(struct scsi_cmnd * SCpnt) | 217 | static void rw_intr(struct scsi_cmnd * SCpnt) |
218 | { | 218 | { |
219 | int result = SCpnt->result; | 219 | int result = SCpnt->result; |
220 | int this_count = SCpnt->bufflen; | 220 | int this_count = SCpnt->request_bufflen; |
221 | int good_bytes = (result == 0 ? this_count : 0); | 221 | int good_bytes = (result == 0 ? this_count : 0); |
222 | int block_sectors = 0; | 222 | int block_sectors = 0; |
223 | long error_sector; | 223 | long error_sector; |