git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Free the memory allocated by memdup_user() in fs/sysfs/bin.c
[safe/jmp/linux-2.6]
/
fs
/
sysfs
/
dir.c
diff --git
a/fs/sysfs/dir.c
b/fs/sysfs/dir.c
index
f13d852
..
d88d0fa
100644
(file)
--- a/
fs/sysfs/dir.c
+++ b/
fs/sysfs/dir.c
@@
-302,7
+302,7
@@
static void sysfs_d_iput(struct dentry * dentry, struct inode * inode)
iput(inode);
}
-static struct dentry_operations sysfs_dentry_ops = {
+static
const
struct dentry_operations sysfs_dentry_ops = {
.d_iput = sysfs_d_iput,
};
@@
-609,6
+609,7
@@
void sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt)
sysfs_drop_dentry(sd);
sysfs_deactivate(sd);
+ unmap_bin_file(sd);
sysfs_put(sd);
}
}