git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JFS: Need to be root to create files with security context
[pandora-kernel.git]
/
fs
/
char_dev.c
diff --git
a/fs/char_dev.c
b/fs/char_dev.c
index
a69a5d8
..
3b1b1ee
100644
(file)
--- a/
fs/char_dev.c
+++ b/
fs/char_dev.c
@@
-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);
}
}