Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344734
b: refs/heads/master
c: fecae40
h: refs/heads/master
v: v3
  • Loading branch information
Nicholas Bellinger committed Nov 7, 2012
1 parent 1557bb0 commit f88d74a
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 3a3c5e4a672c5cd61cbdcedcd027312577f9ab7c
refs/heads/master: fecae40abb1ae9218bdbaa8b8e30bfb5ae43f522
7 changes: 5 additions & 2 deletions trunk/drivers/target/target_core_spc.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,8 +870,11 @@ static int spc_emulate_modesense(struct se_cmd *cmd)
} else {
buf = map_buf;
}

length = ten ? 2 : 1;
/*
* Skip over MODE DATA LENGTH + MEDIUM TYPE fields to byte 3 for
* MODE_SENSE_10 and byte 2 for MODE_SENSE (6).
*/
length = ten ? 3 : 2;

/* DEVICE-SPECIFIC PARAMETER */
if ((cmd->se_lun->lun_access & TRANSPORT_LUNFLAGS_READ_ONLY) ||
Expand Down

0 comments on commit f88d74a

Please sign in to comment.