summaryrefslogtreecommitdiff
path: root/drivers/scsi/sim710.c
diff options
context:
space:
mode:
authorTony Battersby <tonyb@cybernetics.com>2009-01-08 20:52:32 +0300
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-12 20:58:15 +0300
commitd3ce65d12668ef1e3a164d48e04c59228d5ecf7b (patch)
tree30ff47103eaec0ecccb562ea51c4ecd715405d3f /drivers/scsi/sim710.c
parent2cf22be045ee1b29f9ce5cf4f4552811bb24916a (diff)
downloadlinux-d3ce65d12668ef1e3a164d48e04c59228d5ecf7b.tar.xz
[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 <tonyb@cybernetics.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/sim710.c')
0 files changed, 0 insertions, 0 deletions