diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kallsyms.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index c36581b40c04..f1bda23140b2 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c | |||
@@ -470,18 +470,11 @@ static int kallsyms_open(struct inode *inode, struct file *file) | |||
470 | return ret; | 470 | return ret; |
471 | } | 471 | } |
472 | 472 | ||
473 | static int kallsyms_release(struct inode *inode, struct file *file) | ||
474 | { | ||
475 | struct seq_file *m = (struct seq_file *)file->private_data; | ||
476 | kfree(m->private); | ||
477 | return seq_release(inode, file); | ||
478 | } | ||
479 | |||
480 | static const struct file_operations kallsyms_operations = { | 473 | static const struct file_operations kallsyms_operations = { |
481 | .open = kallsyms_open, | 474 | .open = kallsyms_open, |
482 | .read = seq_read, | 475 | .read = seq_read, |
483 | .llseek = seq_lseek, | 476 | .llseek = seq_lseek, |
484 | .release = kallsyms_release, | 477 | .release = seq_release_private, |
485 | }; | 478 | }; |
486 | 479 | ||
487 | static int __init kallsyms_init(void) | 480 | static int __init kallsyms_init(void) |