Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74044
b: refs/heads/master
c: 607126c
h: refs/heads/master
v: v3
  • Loading branch information
Mark Lord authored and Tejun Heo committed Nov 19, 2007
1 parent b085d49 commit d8467e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f442cd86c1c86c5f44bc2cf23f89536f7e4cfe59
refs/heads/master: 607126c2a21cd6e9bb807fdd415c1a992f7b9009
3 changes: 2 additions & 1 deletion trunk/drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2869,7 +2869,8 @@ static inline int __ata_scsi_queuecmd(struct scsi_cmnd *scmd,
xlat_func = NULL;
if (likely((scsi_op != ATA_16) || !atapi_passthru16)) {
/* relay SCSI command to ATAPI device */
if (unlikely(scmd->cmd_len > dev->cdb_len))
int len = COMMAND_SIZE(scsi_op);
if (unlikely(len > scmd->cmd_len || len > dev->cdb_len))
goto bad_cdb_len;

xlat_func = atapi_xlat;
Expand Down

0 comments on commit d8467e6

Please sign in to comment.