Files
twx-linux/drivers/base
Tejun Heo 82f6951e53 [PATCH] driver-core: don't free devt_attr till the device is released
Currently, devt_attr for the "dev" file is freed immediately on device
removal, but if the "dev" sysfs file is open when a device is removed,
sysfs will access its attribute structure for further access including
close resulting in jumping to garbled address.  Fix it by postponing
freeing devt_attr to device release time.

Note that devt_attr for class_device is already freed on release.

This bug is reported by Chris Rankin as bugzilla bug#8198.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
2007-05-23 14:32:49 -07:00
..
2007-02-09 17:39:36 -05:00
2007-02-16 15:19:18 -08:00
2007-02-09 17:39:36 -05:00
2007-02-09 17:39:36 -05:00
2007-02-09 17:39:36 -05:00
2007-02-09 17:39:36 -05:00
2007-02-09 17:39:36 -05:00