aboutsummaryrefslogtreecommitdiffstats
path: root/fs/char_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/char_dev.c')
-rw-r--r--fs/char_dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/char_dev.c b/fs/char_dev.c
index a69a5d8a406f..3b1b1eefdbb0 100644
--- a/fs/char_dev.c
+++ b/fs/char_dev.c
@@ -277,8 +277,9 @@ static struct kobject *cdev_get(struct cdev *p)
277void cdev_put(struct cdev *p) 277void cdev_put(struct cdev *p)
278{ 278{
279 if (p) { 279 if (p) {
280 struct module *owner = p->owner;
280 kobject_put(&p->kobj); 281 kobject_put(&p->kobj);
281 module_put(p->owner); 282 module_put(owner);
282 } 283 }
283} 284}
284 285