Fix for AHA152x on pre-2.1.0 (Re: test version of 2.1.0 available)

Joerg Pommnitz (joerg@raleigh.ibm.com)
Wed, 25 Sep 1996 07:50:07 -0500 (EDT)


Linus,
the enclosed patch fixes the AHA152x driver to work with your pre-2.1.0 patch.
The machine I tested it on is an IBM ThinkPad 755CX with the DockingStation II
SCSI adapter.

And: pre-2.1.0 survived 9 hours crashme.

--- aha152x.c Tue Sep 24 19:19:49 1996
+++ aha152x.c.original Wed Sep 25 06:23:03 1996
@@ -895,7 +895,7 @@
ok=0;
for(i=0; i < ADDRESS_COUNT && !ok; i++)
for(j=0; (j < SIGNATURE_COUNT) && !ok; j++)
- ok=!memcmp(phys_to_virt(addresses[i]+signatures[j].sig_offset),
+ ok=!memcmp((void *) addresses[i]+signatures[j].sig_offset,
(void *) signatures[j].signature,
(int) signatures[j].sig_length);

-- 
Joerg Pommnitz    | joerg@raleigh.ibm.com | Never attribute to malloc 
Mobile/Wireless   | Dept UMRA             | that which can be adequately
Tel:(919)254-6397 | Office B502/E117      | explained by stupidity.