]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[SCSI] aic79xx: check for non-NULL scb in ahd_handle_nonpkt_busfree
authorHannes Reinecke <hare@suse.de>
Fri, 15 Jan 2010 12:07:34 +0000 (13:07 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 17 Jan 2010 18:48:12 +0000 (12:48 -0600)
commit534ef056db8a8fb6b9d50188d88ed5d1fbc66673
tree0c2c497e5781ef870eed9d09d39792895f43073b
parent51375ee8374dd7fa574e1a14ebac406c6d28543b
[SCSI] aic79xx: check for non-NULL scb in ahd_handle_nonpkt_busfree

When removing several devices aic79xx will occasionally Oops
in ahd_handle_nonpkt_busfree during rescan. Looking at the
code I found that we're indeed not checking if the scb in
question is NULL. So check for it before accessing it.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/aic7xxx/aic79xx_core.c