Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77074
b: refs/heads/master
c: 1183657
h: refs/heads/master
v: v3
  • Loading branch information
vignesh babu authored and James Bottomley committed Jan 12, 2008
1 parent c0a0d6c commit 69f8a9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 4545a88fc1ae2c0cd1da6e35f3adcbc56ff27b07
refs/heads/master: 118365721768f29d74718a59895ed7bd3c10b68e
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/types.h>
#include <linux/kfifo.h>
#include <linux/delay.h>
#include <linux/log2.h>
#include <asm/unaligned.h>
#include <net/tcp.h>
#include <scsi/scsi_cmnd.h>
Expand Down Expand Up @@ -1700,7 +1701,7 @@ iscsi_session_setup(struct iscsi_transport *iscsit,
qdepth = ISCSI_DEF_CMD_PER_LUN;
}

if (cmds_max < 2 || (cmds_max & (cmds_max - 1)) ||
if (!is_power_of_2(cmds_max) ||
cmds_max >= ISCSI_MGMT_ITT_OFFSET) {
if (cmds_max != 0)
printk(KERN_ERR "iscsi: invalid can_queue of %d. "
Expand Down

0 comments on commit 69f8a9c

Please sign in to comment.