]> err.no Git - linux-2.6/blobdiff - fs/char_dev.c
[PATCH] inotify: event ordering
[linux-2.6] / fs / char_dev.c
index a69a5d8a406f982be7eb6cb1fc9c4ff59a858ffa..3b1b1eefdbb01686f127df582143f922bf87c193 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);
        }
 }