summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-05-10 16:45:17 +0200
committerChris Wright <chrisw@sous-sol.org>2007-06-11 11:37:09 -0700
commit0b7da0500bbf612fc532358c90aad4497309d61a (patch)
tree81081439b1c6c520d64ae970ce76ebb4782b7516 /README
parentef229b87b823863f065a53daf39e202944615da2 (diff)
downloadlwn-0b7da0500bbf612fc532358c90aad4497309d61a.tar.gz
lwn-0b7da0500bbf612fc532358c90aad4497309d61a.zip
[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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions