aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/commsup.c
diff options
context:
space:
mode:
authorSalyzyn, Mark <Mark_Salyzyn@adaptec.com>2008-01-08 16:26:43 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-01-23 12:29:21 -0500
commitb6ef70f33ca2a3084b4fea12414550724a9114dc (patch)
tree4b8b857371adb3439c80c3612598411f46a54330 /drivers/scsi/aacraid/commsup.c
parent6dcd4a7fe5dfaace2763187d6941e700a8bc6f27 (diff)
[SCSI] aacraid: OS panic after Adapter panic (hardening).
In experiments in the lab we managed to trigger an Adapter firmware panic (BlinkLED) coincidentally while several pass-through ioctl command from the management software were outstanding on a bug only present on a class of RAID Adapters that require a hardware reset rather than a commanded reset. The net result was an attempt to time out the management software command as if it came from the SCSI layer resulting in an OS panic. Adapters that use commanded reset, management commands are returned failed by the Adapter correctly. The adapter firmware panic that resulted in this condition was also resolved, and there were no adapters in the field with this specific firmware bug so we do not expect any field reports. This is a rare or unlikely corner condition, and no reports have ever been forwarded from the field. Signed-off-by: Mark Salyzyn <aacraid@adaptec.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/aacraid/commsup.c')
-rw-r--r--drivers/scsi/aacraid/commsup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c
index e82d89ccaf15..3a3017d8dc65 100644
--- a/drivers/scsi/aacraid/commsup.c
+++ b/drivers/scsi/aacraid/commsup.c
@@ -171,6 +171,7 @@ struct fib *aac_fib_alloc(struct aac_dev *dev)
171 * each I/O 171 * each I/O
172 */ 172 */
173 fibptr->hw_fib_va->header.XferState = 0; 173 fibptr->hw_fib_va->header.XferState = 0;
174 fibptr->flags = 0;
174 fibptr->callback = NULL; 175 fibptr->callback = NULL;
175 fibptr->callback_data = NULL; 176 fibptr->callback_data = NULL;
176 177
@@ -402,6 +403,7 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
402 * will have a debug mode where the adapter can notify the host 403 * will have a debug mode where the adapter can notify the host
403 * it had a problem and the host can log that fact. 404 * it had a problem and the host can log that fact.
404 */ 405 */
406 fibptr->flags = 0;
405 if (wait && !reply) { 407 if (wait && !reply) {
406 return -EINVAL; 408 return -EINVAL;
407 } else if (!wait && reply) { 409 } else if (!wait && reply) {
@@ -450,10 +452,10 @@ int aac_fib_send(u16 command, struct fib *fibptr, unsigned long size,
450 if (!wait) { 452 if (!wait) {
451 fibptr->callback = callback; 453 fibptr->callback = callback;
452 fibptr->callback_data = callback_data; 454 fibptr->callback_data = callback_data;
455 fibptr->flags = FIB_CONTEXT_FLAG;
453 } 456 }
454 457
455 fibptr->done = 0; 458 fibptr->done = 0;
456 fibptr->flags = 0;
457 459
458 FIB_COUNTER_INCREMENT(aac_config.FibsSent); 460 FIB_COUNTER_INCREMENT(aac_config.FibsSent);
459 461