Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57005
b: refs/heads/master
c: 6c7b7d2
h: refs/heads/master
i:
  57003: 1ed38c2
v: v3
  • Loading branch information
Jeff Garzik committed May 25, 2007
1 parent aebc0a9 commit 14fc95d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: ddfc87a098a0172ad13ce50edf55d5fe266f1352
refs/heads/master: 6c7b7d2b7615110edbc4ea7816831c13b0250ebb
5 changes: 3 additions & 2 deletions trunk/drivers/ata/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1050,14 +1050,15 @@ static unsigned int ata_scsi_flush_xlat(struct ata_queued_cmd *qc)
static void scsi_6_lba_len(const u8 *cdb, u64 *plba, u32 *plen)
{
u64 lba = 0;
u32 len = 0;
u32 len;

VPRINTK("six-byte command\n");

lba |= ((u64)(cdb[1] & 0x1f)) << 16;
lba |= ((u64)cdb[2]) << 8;
lba |= ((u64)cdb[3]);

len |= ((u32)cdb[4]);
len = cdb[4];

*plba = lba;
*plen = len;
Expand Down

0 comments on commit 14fc95d

Please sign in to comment.