Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276475
b: refs/heads/master
c: 9b5cd7f
h: refs/heads/master
i:
  276473: bfaf6c1
  276471: 38112c3
v: v3
  • Loading branch information
Roland Dreier authored and Nicholas Bellinger committed Dec 6, 2011
1 parent ee6e6f7 commit f480b75
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 410f670202f0f13cdac8459b9c3effeeead135d1
refs/heads/master: 9b5cd7f37e1e018432111333e2a67f78ba41edfe
9 changes: 7 additions & 2 deletions trunk/drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -2144,10 +2144,15 @@ static inline u32 transport_get_sectors_6(

/*
* Everything else assume TYPE_DISK Sector CDB location.
* Use 8-bit sector value.
* Use 8-bit sector value. SBC-3 says:
*
* A TRANSFER LENGTH field set to zero specifies that 256
* logical blocks shall be written. Any other value
* specifies the number of logical blocks that shall be
* written.
*/
type_disk:
return (u32)cdb[4];
return cdb[4] ? : 256;
}

static inline u32 transport_get_sectors_10(
Expand Down

0 comments on commit f480b75

Please sign in to comment.