From: Alan Stern Date: Fri, 27 Feb 2009 21:51:42 +0000 (-0500) Subject: [SCSI] fix /proc memory leak in the SCSI core X-Git-Tag: v2.6.30-rc1~641^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77c019768f0607c36e25bec11ce3e1eabef09277;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed