[PATCH] aha1542: queuecommand: change panic() to return
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(-)
Showing
Please register or sign in to comment