patch-2.4.19 linux-2.4.19/drivers/scsi/aacraid/dpcsup.c

Next file: linux-2.4.19/drivers/scsi/aacraid/linit.c
Previous file: linux-2.4.19/drivers/scsi/aacraid/commsup.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/scsi/aacraid/dpcsup.c linux-2.4.19/drivers/scsi/aacraid/dpcsup.c
@@ -77,9 +77,9 @@
 		int fast;
 
 		fast = (int) (entry->addr & 0x01);
-		fib = (struct hw_fib *) (entry->addr & ~0x01);
+		fib = addr2fib(entry->addr & ~0x01);
 		aac_consumer_free(dev, q, HostNormRespQueue);
-		fibctx = (struct fib *)fib->header.SenderData;
+		fibctx = &dev->fibs[fib->header.SenderData];
 		/*
 		 *	Remove this fibctx from the Outstanding I/O queue.
 		 *	But only if it has not already been timed out.
@@ -172,7 +172,7 @@
 	while(aac_consumer_get(dev, q, &entry))
 	{
 		struct hw_fib * fib;
-		fib = (struct hw_fib *)entry->addr;
+		fib = addr2fib(entry->addr);
 
 		if (dev->aif_thread) {
 		        list_add_tail(&fib->header.FibLinks, &q->cmdq);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)