diff options
author | Mark Haverkamp <markh@osdl.org> | 2006-01-11 12:28:07 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2006-01-12 12:54:29 -0500 |
commit | 6e289a9023d589c24f86b29186d324215cdc9947 (patch) | |
tree | 6976b28a4df6b0cd2d30f450d16576d398deee14 | |
parent | 33b114e935a2202206e224dd2c695cee5a5986bf (diff) |
[SCSI] aacraid: Fix default FIB size
Received from Mark Salyzyn.
If the adapter has not instructed us otherwise that it can handle a
'large' FIB, then it can handle at most a 2KB FIB.
Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r-- | drivers/scsi/aacraid/commctrl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c index ef623bd965f5..4fe79cd7c957 100644 --- a/drivers/scsi/aacraid/commctrl.c +++ b/drivers/scsi/aacraid/commctrl.c | |||
@@ -85,6 +85,10 @@ static int ioctl_send_fib(struct aac_dev * dev, void __user *arg) | |||
85 | if (size < le16_to_cpu(kfib->header.SenderSize)) | 85 | if (size < le16_to_cpu(kfib->header.SenderSize)) |
86 | size = le16_to_cpu(kfib->header.SenderSize); | 86 | size = le16_to_cpu(kfib->header.SenderSize); |
87 | if (size > dev->max_fib_size) { | 87 | if (size > dev->max_fib_size) { |
88 | if (size > 2048) { | ||
89 | retval = -EINVAL; | ||
90 | goto cleanup; | ||
91 | } | ||
88 | /* Highjack the hw_fib */ | 92 | /* Highjack the hw_fib */ |
89 | hw_fib = fibptr->hw_fib; | 93 | hw_fib = fibptr->hw_fib; |
90 | hw_fib_pa = fibptr->hw_fib_pa; | 94 | hw_fib_pa = fibptr->hw_fib_pa; |