Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328924
b: refs/heads/master
c: 225c569
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and James Bottomley committed Sep 24, 2012
1 parent ad9d056 commit df3f337
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9965c2f19be470c452357ae4f6304467cdeada55
refs/heads/master: 225c56960fcafeccc2b6304f96cd3f0dbf42a16a
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/ibmvscsi/ibmvscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1851,6 +1851,9 @@ static int ibmvscsi_do_host_config(struct ibmvscsi_host_data *hostdata,

host_config = &evt_struct->iu.mad.host_config;

/* The transport length field is only 16-bit */
length = min(0xffff, length);

/* Set up a lun reset SRP command */
memset(host_config, 0x00, sizeof(*host_config));
host_config->common.type = VIOSRP_HOST_CONFIG_TYPE;
Expand Down

0 comments on commit df3f337

Please sign in to comment.