• Andrew Morton's avatar
    [PATCH] aha152X oops fixes · a5efd873
    Andrew Morton authored
    From: Martin Diehl <lists@mdiehl.de>
    
    Seems there are two problems:
    
    * interrupt handler expects to find the host in aha152x_host[] array which
      is currently set too late after probing irq's
    
    * despite testing for NULL swintr derefences a shpnt==NULL anyway, looks
      like a victim of HOSTNO obfuscation ;-)
    
    The patch below fixes the issue for me - succesfully tested to compile,
    load and even use my attached scanner.
    
    
    
     drivers/scsi/aha152x.c |   15 ++++++++++-----
     1 files changed, 10 insertions(+), 5 deletions(-)
    a5efd873
aha152x.c 96.4 KB