[PATCH] m68knommu: use THREAD_SIZE instead of hard coded size
[pandora-kernel.git] / fs / char_dev.c
index a69a5d8..3b1b1ee 100644 (file)
@@ -277,8 +277,9 @@ static struct kobject *cdev_get(struct cdev *p)
 void cdev_put(struct cdev *p)
 {
        if (p) {
+               struct module *owner = p->owner;
                kobject_put(&p->kobj);
-               module_put(p->owner);
+               module_put(owner);
        }
 }