Bartlomiej Zolnierkiewicz
8fed436841
ide: fix refcounting in device drivers
...
During host driver module removal del_gendisk() results in a final
put on drive->gendev and freeing the drive by drive_release_dev().
Convert device drivers from using struct kref to use struct device
so device driver's object holds reference on ->gendev and prevents
drive from prematurely going away.
Also fix ->remove methods to not erroneously drop reference on a
host driver by using only put_device() instead of ide*_put().
Reported-by: Stanislaw Gruszka <stf_xl@wp.pl>
Tested-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2009-02-25 20:28:24 +01:00
..
2009-01-06 17:20:52 +01:00
2009-01-06 17:21:02 +01:00
2009-02-25 20:28:22 +01:00
2009-02-25 20:28:22 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:20:55 +01:00
2009-01-06 17:20:52 +01:00
2009-02-02 20:12:23 +01:00
2009-01-06 17:20:52 +01:00
2009-01-19 13:46:56 +01:00
2009-01-06 17:21:02 +01:00
2009-02-02 20:12:23 +01:00
2009-02-02 20:12:21 +01:00
2009-01-06 17:20:58 +01:00
2009-02-25 20:28:24 +01:00
2009-02-25 20:28:24 +01:00
2009-01-14 19:19:03 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:20:50 +01:00
2009-01-06 17:20:50 +01:00
2009-02-25 20:28:24 +01:00
2009-02-25 20:28:24 +01:00
2009-01-06 17:21:02 +01:00
2009-02-02 20:12:21 +01:00
2009-01-14 19:19:02 +01:00
2009-01-06 17:20:50 +01:00
2009-01-06 17:20:50 +01:00
2009-01-14 19:19:04 +01:00
2009-02-02 20:12:22 +01:00
2009-01-06 17:20:56 +01:00
2009-02-25 20:28:24 +01:00
2009-01-06 17:20:53 +01:00
2009-02-25 20:28:21 +01:00
2009-02-25 20:28:22 +01:00
2009-01-06 17:21:01 +01:00
2009-01-06 17:20:52 +01:00
2009-02-25 20:28:21 +01:00
2009-02-02 20:12:23 +01:00
2009-01-06 17:21:02 +01:00
2009-01-19 13:46:57 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:21:01 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:21:02 +01:00
2009-02-03 16:53:56 -08:00
2009-02-03 16:53:56 -08:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:20:52 +01:00
2009-01-14 19:19:03 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:21:02 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00
2009-01-14 19:19:04 +01:00
2009-02-02 20:12:23 +01:00
2009-01-06 17:20:50 +01:00
2009-02-02 20:12:22 +01:00