Files
linux-legacy/drivers/scsi
Mike Christie 3ed7897242 [SCSI] scsi_host regression: fix scsi host leak
commit 9c7701088a
Author: Dave Young <hidave.darkstar@gmail.com>
Date:   Tue Jan 22 14:01:34 2008 +0800

    scsi: use class iteration api

Isn't a correct replacement for the original hand rolled host
lookup. The problem is that class_find_child would get a reference to
the host's class device which is never released.  Since the host class
device holds a reference to the host gendev, the host can never be
freed.

In 2.6.26 we started using class_find_device, and this function also
gets a reference to the device, so we end up with an extra ref
and the host will not get released.

This patch adds a put_device to balance the class_find_device() get. I
kept the scsi_host_get in scsi_host_lookup, because the target layer
is using scsi_host_lookup and it looks like it needs the SHOST_DEL
check.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-06-15 11:09:43 -05:00
..
2008-05-02 13:17:01 -05:00
2008-01-11 18:22:30 -06:00
…
…
…
…
2008-01-30 13:14:02 -06:00
…
…
2008-05-20 13:31:56 -07:00
…
…
…
…
2008-01-30 13:14:02 -06:00
2008-04-28 23:44:41 +02:00
…
…
…
2008-01-11 18:27:59 -06:00
2008-01-30 13:03:40 -06:00
2008-01-30 13:14:02 -06:00
2008-04-27 12:19:57 -05:00
2008-04-29 08:06:18 -07:00
…
…
2008-01-30 13:14:02 -06:00
2008-01-23 13:44:31 -06:00
2008-01-30 13:14:02 -06:00
2007-10-19 11:53:42 -07:00
2008-05-20 13:31:56 -07:00
…
…
2008-01-30 13:14:02 -06:00
2008-02-23 09:07:32 -06:00
2007-07-18 11:16:32 -05:00
…
2008-05-20 13:31:56 -07:00
2008-02-07 18:02:44 -06:00
2008-05-20 13:31:56 -07:00
2007-05-31 17:30:04 -04:00
…
2007-10-19 23:22:55 +02:00
2008-01-30 13:14:02 -06:00
…