diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2009-02-28 00:51:42 +0300 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-03-12 20:58:17 +0300 |
commit | 77c019768f0607c36e25bec11ce3e1eabef09277 (patch) | |
tree | 7a8a5382a3be5c2662dcab8e726a3dcc94d6d924 /drivers/s390/scsi/zfcp_def.h | |
parent | 058bb82c5628c88af802c19e2b56ae43551552d5 (diff) | |
download | linux-77c019768f0607c36e25bec11ce3e1eabef09277.tar.xz |
[SCSI] fix /proc memory leak in the SCSI core
The SCSI core calls scsi_proc_hostdir_add() from within
scsi_host_alloc(), but the corresponding scsi_proc_hostdir_rm()
routine is called from within scsi_remove_host(). As a result, if a
host is allocated and then deallocated without ever being registered,
the host's directory in /proc is leaked.
This patch (as1181b) fixes this bug in the SCSI core by moving
scsi_proc_hostdir_rm() into scsi_host_dev_release().
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
0 files changed, 0 insertions, 0 deletions