diff options
author | David Howells <dhowells@redhat.com> | 2006-12-05 09:37:56 -0500 |
---|---|---|
committer | David Howells <dhowells@warthog.cambridge.redhat.com> | 2006-12-05 09:37:56 -0500 |
commit | 4c1ac1b49122b805adfa4efc620592f68dccf5db (patch) | |
tree | 87557f4bc2fd4fe65b7570489c2f610c45c0adcd /drivers/infiniband/ulp/srp | |
parent | c4028958b6ecad064b1a6303a6a5906d4fe48d73 (diff) | |
parent | d916faace3efc0bf19fe9a615a1ab8fa1a24cd93 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/infiniband/core/iwcm.c
drivers/net/chelsio/cxgb2.c
drivers/net/wireless/bcm43xx/bcm43xx_main.c
drivers/net/wireless/prism54/islpci_eth.c
drivers/usb/core/hub.h
drivers/usb/input/hid-core.c
net/core/netpoll.c
Fix up merge failures with Linus's head and fix new compilation failures.
Signed-Off-By: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 214f66195af2..a6289595557b 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c | |||
@@ -1177,9 +1177,11 @@ static int srp_cm_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event) | |||
1177 | break; | 1177 | break; |
1178 | } | 1178 | } |
1179 | 1179 | ||
1180 | target->status = srp_alloc_iu_bufs(target); | 1180 | if (!target->rx_ring[0]) { |
1181 | if (target->status) | 1181 | target->status = srp_alloc_iu_bufs(target); |
1182 | break; | 1182 | if (target->status) |
1183 | break; | ||
1184 | } | ||
1183 | 1185 | ||
1184 | qp_attr = kmalloc(sizeof *qp_attr, GFP_KERNEL); | 1186 | qp_attr = kmalloc(sizeof *qp_attr, GFP_KERNEL); |
1185 | if (!qp_attr) { | 1187 | if (!qp_attr) { |
@@ -1717,7 +1719,8 @@ static ssize_t srp_create_target(struct class_device *class_dev, | |||
1717 | if (!target_host) | 1719 | if (!target_host) |
1718 | return -ENOMEM; | 1720 | return -ENOMEM; |
1719 | 1721 | ||
1720 | target_host->max_lun = SRP_MAX_LUN; | 1722 | target_host->max_lun = SRP_MAX_LUN; |
1723 | target_host->max_cmd_len = sizeof ((struct srp_cmd *) (void *) 0L)->cdb; | ||
1721 | 1724 | ||
1722 | target = host_to_target(target_host); | 1725 | target = host_to_target(target_host); |
1723 | 1726 | ||