Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181395
b: refs/heads/master
c: 78d8501
h: refs/heads/master
i:
  181393: 3b9f7cc
  181391: cc6cb36
v: v3
  • Loading branch information
Bart Van Assche authored and James Bottomley committed Feb 19, 2010
1 parent cd64fc9 commit 0f00208
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 22963a37b3437a25812cc856afa5a84ad4a3f541
refs/heads/master: 78d85019ba8c13e1094cad0ea9bb4f61caad8320
4 changes: 2 additions & 2 deletions trunk/drivers/scsi/libsrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ int srp_transfer_data(struct scsi_cmnd *sc, struct srp_cmd *cmd,
int offset, err = 0;
u8 format;

offset = cmd->add_cdb_len * 4;
offset = cmd->add_cdb_len & ~3;

dir = srp_cmd_direction(cmd);
if (dir == DMA_FROM_DEVICE)
Expand Down Expand Up @@ -366,7 +366,7 @@ static int vscsis_data_length(struct srp_cmd *cmd, enum dma_data_direction dir)
{
struct srp_direct_buf *md;
struct srp_indirect_buf *id;
int len = 0, offset = cmd->add_cdb_len * 4;
int len = 0, offset = cmd->add_cdb_len & ~3;
u8 fmt;

if (dir == DMA_TO_DEVICE)
Expand Down

0 comments on commit 0f00208

Please sign in to comment.