]> git.hungrycats.org Git - linux/commit
[PATCH] fix oops caused when writing to the rescan attribute
authorMike Christie <mikenc@us.ibm.com>
Thu, 16 Oct 2003 14:17:01 +0000 (19:47 +0530)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Thu, 16 Oct 2003 14:17:01 +0000 (19:47 +0530)
commitaf41f9e9f44a69a8ab159be7ac4055d7950e68c1
tree3a0303b1c8370a951d4c458421ad2e5e0496d8b3
parent1590208444308de5c126d739b9e89b29961c3f10
[PATCH] fix oops caused when writing to the rescan attribute

If an upper layer driver is not loaded, and you write to a device's
rescan attribute you will get an oops. The attached patch fixes this by
testing if the device's driver variable is set before accessing it.
drivers/scsi/scsi_scan.c