• Randy Dunlap's avatar
    [PATCH] aha1542: queuecommand: change panic() to return · ad28d878
    Randy Dunlap authored
    From: Timmy Yee <shoujun@masterofpi.org>
    
    The aha1542 driver calls panic() if kmalloc() fails, which it shouldn't
    do. This patch changes that by having the code return a nonzero value, so
    it tells the SCSI mid-layer to retry the command, as suggested by Randy.
    
    
    diffstat:=
     drivers/scsi/aha1542.c |    7 +++++--
     1 files changed, 5 insertions(+), 2 deletions(-)
    ad28d878
aha1542.c 51.3 KB