Skip to content
Commit 63ce18cf authored by Mike Galbraith's avatar Mike Galbraith Committed by Greg Kroah-Hartman
Browse files

driver core: refcounting fix

Fix a reference counting bug exposed by commit
725522b5

.  If driver.mod_name exists, we
take a reference in module_add_driver(), and never release it.  Undo that
reference in module_remove_driver().

Signed-off-by: default avatarMike Galbraith <efault@gmx.de>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 40cf67c5
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