Brian King
7da6844cf7
[PATCH] cdev: cdev_put oops
...
While fixing an oops in the st driver in a dirty release path, I
encountered an oops in cdev_put for cdevs allocated using cdev_alloc. If
cdev_del is called when the cdev kobject still has an open user, when the
last cdev_put is called, the cdev_put will call kobject_put, which will end
up ultimately releasing the cdev in cdev_dynamic_release. Patch fixes the
oops by preventing cdev_put from accessing freed memory.
Signed-off-by: Brian King <brking@us.ibm.com>
Cc: <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-07-12 16:01:02 -07:00
..
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 17:10:13 -07:00
2005-04-16 15:20:36 -07:00
2005-07-07 18:23:46 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-09 14:44:07 -07:00
2005-06-20 15:15:11 -07:00
2005-04-16 15:20:36 -07:00
2005-06-23 09:45:20 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-07-12 16:01:01 -07:00
2005-07-12 16:01:01 -07:00
2005-06-30 22:29:48 -07:00
2005-06-30 08:45:12 -07:00
2005-05-01 08:59:16 -07:00
2005-05-01 08:59:16 -07:00
2005-05-28 16:46:11 -07:00
2005-04-16 15:20:36 -07:00
2005-07-07 18:23:44 -07:00
2005-06-21 18:46:16 -07:00
2005-06-21 19:07:38 -07:00
2005-06-25 17:10:13 -07:00
2005-06-25 16:25:04 -07:00
2005-07-06 18:30:00 +02:00
2005-06-25 17:10:13 -07:00
2005-06-25 17:10:13 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 16:25:04 -07:00
2005-06-28 21:20:31 -07:00
2005-06-22 16:07:23 -04:00
2005-07-07 18:24:11 -07:00
2005-05-05 16:36:47 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 16:24:59 -07:00
2005-06-25 16:24:53 -07:00
2005-06-24 14:14:24 -07:00
2005-04-16 15:20:36 -07:00
2005-06-30 08:45:13 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-24 00:06:40 -07:00
2005-04-16 15:20:36 -07:00
2005-06-30 08:45:11 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 17:10:13 -07:00
2005-06-28 21:20:32 -07:00
2005-04-16 15:20:36 -07:00
2005-05-05 16:36:47 -07:00
2005-06-21 18:46:16 -07:00
2005-04-16 15:20:36 -07:00
2005-06-21 18:46:16 -07:00
2005-04-16 15:20:36 -07:00
2005-06-06 14:57:51 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-07-07 18:23:46 -07:00
2005-06-23 09:45:32 -07:00
2005-07-07 18:23:45 -07:00
2005-07-12 16:01:02 -07:00
2005-04-16 15:20:36 -07:00
2005-04-27 15:39:03 -07:00
2005-05-05 16:36:47 -07:00
2005-07-07 18:23:52 -07:00
2005-06-24 00:05:19 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 16:25:11 -07:00
2005-06-23 09:45:30 -07:00
2005-07-12 16:01:01 -07:00
2005-05-01 08:59:14 -07:00
2005-04-16 15:20:36 -07:00
2005-06-23 09:45:26 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-06-23 09:45:27 -07:00
2005-07-12 16:00:59 -07:00
2005-04-16 15:20:36 -07:00
2005-07-07 18:23:37 -07:00
2005-07-11 10:18:18 -07:00
2005-04-16 15:20:36 -07:00
2005-06-25 16:24:38 -07:00
2005-07-07 18:23:47 -07:00
2005-06-27 14:33:29 -07:00
2005-05-05 16:36:47 -07:00
2005-06-04 17:12:59 -07:00
2005-07-07 18:23:52 -07:00
2005-07-07 18:23:52 -07:00
2005-04-16 15:20:36 -07:00
2005-06-24 00:06:41 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:25:47 -07:00
2005-06-23 09:45:27 -07:00
2005-06-23 09:45:34 -07:00
2005-04-16 15:20:36 -07:00
2005-05-05 16:36:47 -07:00
2005-05-01 08:59:26 -07:00
2005-04-16 15:20:36 -07:00
2005-07-07 18:23:52 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00