]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] fix potential panic with proc on module removal
authorJames Bottomley <James.Bottomley@steeleye.com>
Sun, 2 Oct 2005 17:59:49 +0000 (12:59 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Sun, 2 Oct 2005 20:20:03 +0000 (15:20 -0500)
commitc525a81649c95d2c6bd119abd2503becfb639fba
tree9f0c6493871998b94c50ae18eab88138a33c52ec
parentebee0184e04ebf00fcc655ea5f0d62a5a30ae277
[SCSI] fix potential panic with proc on module removal

There's a problem in our host release in that it calls
scsi_proc_hostdir_rm(). However, if you hold a reference to the host as
you remove the module, the host template (which proc uses) will be freed
and the system will panic when the host device is finally released.

Fix this by moving scsi_proc_hostdir_rm() to where it should be: in
scsi_remove_host().

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/hosts.c