Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101535
b: refs/heads/master
c: 30e9ba9
h: refs/heads/master
i:
  101533: 2ab1ac8
  101531: 0370c6f
  101527: 49b2518
  101519: 3912324
  101503: f4cb2de
v: v3
  • Loading branch information
Boaz Harrosh authored and James Bottomley committed Jul 12, 2008
1 parent 26885ab commit ce83fab
Show file tree
Hide file tree
Showing 3 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: 8f333991ba8479fe8a9d72aea978db415e3c2f2a
refs/heads/master: 30e9ba9f2001f45960507f1963551311a67d0209
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/iscsi_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,7 @@ iscsi_tcp_session_create(struct iscsi_endpoint *ep, uint16_t cmds_max,
shost->max_lun = iscsi_max_lun;
shost->max_id = 0;
shost->max_channel = 0;
shost->max_cmd_len = 16;
shost->max_cmd_len = SCSI_MAX_VARLEN_CDB_SIZE;
shost->can_queue = cmds_max;

if (iscsi_host_add(shost, NULL))
Expand Down
3 changes: 2 additions & 1 deletion trunk/include/scsi/iscsi_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define ISCSI_PROTO_H

#include <linux/types.h>
#include <scsi/scsi.h>

#define ISCSI_DRAFT20_VERSION 0x00

Expand Down Expand Up @@ -156,7 +157,7 @@ struct iscsi_ecdb_ahdr {
uint8_t ahstype;
uint8_t reserved;
/* 4-byte aligned extended CDB spillover */
uint8_t ecdb[260 - ISCSI_CDB_SIZE];
uint8_t ecdb[SCSI_MAX_VARLEN_CDB_SIZE - ISCSI_CDB_SIZE];
};

/* SCSI Response Header */
Expand Down

0 comments on commit ce83fab

Please sign in to comment.