From: Tony Battersby Date: Thu, 8 Jan 2009 17:52:32 +0000 (-0500) Subject: [SCSI] sym53c8xx: fix shost use-after-free and memory leak X-Git-Tag: v2.6.30-rc1~641^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3ce65d12668ef1e3a164d48e04c59228d5ecf7b;p=pandora-kernel.git [SCSI] sym53c8xx: fix shost use-after-free and memory leak This patch fixes two bugs: 1) rmmod sym53c8xx uses shost after freeing it with scsi_put_host(shost). 2) insmod sym53c8xx doesn't call scsi_put_host(shost) if scsi_add_host() fails, causing a memory leak on the error path. Signed-off-by: Tony Battersby Signed-off-by: James Bottomley --- Reading git-diff-tree failed