diff options
author | Paul Mackerras <paulus@samba.org> | 2006-02-06 18:43:36 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-02-06 18:43:36 -0500 |
commit | 6cb6524d90b6e5497e79a1474bdb2f26755d1c02 (patch) | |
tree | fd475ac8f57a6bd39c976056324d1bc79d11b4c9 /drivers/scsi/scsi_lib.c | |
parent | 837e9594fc3cb9a06bddd7ecf66151334a2e13d2 (diff) | |
parent | 410c05427a69f53851637ccb85c2212131409fbd (diff) |
Merge ../linux-2.6
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 3574ba935af8..4a602853a98e 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -436,6 +436,7 @@ free_bios: | |||
436 | * scsi_execute_async - insert request | 436 | * scsi_execute_async - insert request |
437 | * @sdev: scsi device | 437 | * @sdev: scsi device |
438 | * @cmd: scsi command | 438 | * @cmd: scsi command |
439 | * @cmd_len: length of scsi cdb | ||
439 | * @data_direction: data direction | 440 | * @data_direction: data direction |
440 | * @buffer: data buffer (this can be a kernel buffer or scatterlist) | 441 | * @buffer: data buffer (this can be a kernel buffer or scatterlist) |
441 | * @bufflen: len of buffer | 442 | * @bufflen: len of buffer |
@@ -445,7 +446,7 @@ free_bios: | |||
445 | * @flags: or into request flags | 446 | * @flags: or into request flags |
446 | **/ | 447 | **/ |
447 | int scsi_execute_async(struct scsi_device *sdev, const unsigned char *cmd, | 448 | int scsi_execute_async(struct scsi_device *sdev, const unsigned char *cmd, |
448 | int data_direction, void *buffer, unsigned bufflen, | 449 | int cmd_len, int data_direction, void *buffer, unsigned bufflen, |
449 | int use_sg, int timeout, int retries, void *privdata, | 450 | int use_sg, int timeout, int retries, void *privdata, |
450 | void (*done)(void *, char *, int, int), gfp_t gfp) | 451 | void (*done)(void *, char *, int, int), gfp_t gfp) |
451 | { | 452 | { |
@@ -472,7 +473,7 @@ int scsi_execute_async(struct scsi_device *sdev, const unsigned char *cmd, | |||
472 | if (err) | 473 | if (err) |
473 | goto free_req; | 474 | goto free_req; |
474 | 475 | ||
475 | req->cmd_len = COMMAND_SIZE(cmd[0]); | 476 | req->cmd_len = cmd_len; |
476 | memcpy(req->cmd, cmd, req->cmd_len); | 477 | memcpy(req->cmd, cmd, req->cmd_len); |
477 | req->sense = sioc->sense; | 478 | req->sense = sioc->sense; |
478 | req->sense_len = 0; | 479 | req->sense_len = 0; |