Skip to content
Commit ef79df26 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

sysdev: fix problem with sysdev_class being re-registered



We need to initialize the kobject for a sysdev_class as it could have
been recycled (stupid static kobjects...)

We also do the same thing in case sysdev devices are being
re-registered.

Thanks to Balaji Rao <balajirrao@gmail.com> for pointing out the
problem.

Signed-off-by: default avatarBalaji Rao <balajirrao@gmail.com>
Tested-by: default avatarMikael Pettersson <mikpe@it.uu.se>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cdeeeae0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment