From: Maneesh Soni Date: Tue, 16 Aug 2005 22:15:48 +0000 (-0700) Subject: [PATCH] Driver core: potentially fix use after free in class_device_attr_show X-Git-Tag: v2.6.13-rc7~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=208f3d6175cb17772c5af202fe12373f90894ff4;p=pandora-kernel.git [PATCH] Driver core: potentially fix use after free in class_device_attr_show This moves the code to free devt_attr from class_device_del() to class_dev_release() which is called after the last reference to the corresponding kobject() is gone. This allows us to keep the devt_attr alive while the corresponding sysfs file is open. Signed-off-by: Maneesh Soni Signed-off-by: Greg Kroah-Hartman Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed