Tony Battersby d3ce65d126 [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>
2009-03-12 12:58:15 -05:00
..
2009-03-12 12:58:02 -05:00
2008-01-11 18:22:30 -06:00
2006-09-12 17:12:31 -05:00
2006-09-12 17:12:31 -05:00
2008-10-16 16:52:06 +02:00
2009-03-12 12:58:02 -05:00
2008-12-29 11:24:14 -06:00
2008-08-29 02:13:10 -07:00
2008-11-30 10:03:36 -08:00
2008-10-09 08:56:13 +02:00
2006-09-12 17:12:31 -05:00
2009-03-12 12:58:02 -05:00
2009-03-12 12:57:58 -05:00
2009-03-12 12:58:02 -05:00
2008-01-30 13:14:02 -06:00
2008-12-28 20:00:03 +01:00
2006-09-12 17:12:31 -05:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2009-03-12 12:58:10 -05:00
2009-03-12 12:58:10 -05:00
2008-10-23 11:42:17 -05:00
2009-03-12 12:58:05 -05:00
2007-07-18 11:16:32 -05:00
2008-07-02 15:06:25 -06:00
2009-03-12 12:57:54 -05:00
2008-02-07 18:02:44 -06:00
2009-03-12 12:58:02 -05:00
2009-01-02 12:02:25 -06:00
2009-03-12 12:58:04 -05:00
2008-10-23 11:42:19 -05:00
2006-11-15 16:43:50 -06:00
2007-10-19 23:22:55 +02:00