Files
linux/drivers/pps
George Spelvin 49626fbb03 pps: Fix a use-after free bug when unregistering a source.
commit d953e0e837 upstream.

Remove the cdev from the system (with cdev_del) *before* deallocating it
(in pps_device_destruct, called via kobject_put from device_destroy).

Also prevent deallocating a device with open file handles.

A better long-term fix is probably to remove the cdev from the pps_device
entirely, and instead have all devices reference one global cdev.  Then
the deallocation ordering becomes simpler.

But that's more complex and invasive change, so we leave that
for later.

Signed-off-by: George Spelvin <linux@horizon.com>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-28 05:38:31 -08:00
..
2011-03-22 17:44:17 -07:00
2011-11-02 16:07:02 -07:00
2011-01-13 08:03:21 -08:00
2011-01-13 08:03:21 -08:00
2009-06-18 13:04:04 -07:00