diff options
Diffstat (limited to 'fs/binfmt_misc.c')
-rw-r--r-- | fs/binfmt_misc.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c index 1713c48fef54..c2e08252af35 100644 --- a/fs/binfmt_misc.c +++ b/fs/binfmt_misc.c | |||
@@ -311,7 +311,7 @@ static Node *create_entry(const char __user *buffer, size_t count) | |||
311 | 311 | ||
312 | err = -ENOMEM; | 312 | err = -ENOMEM; |
313 | memsize = sizeof(Node) + count + 8; | 313 | memsize = sizeof(Node) + count + 8; |
314 | e = (Node *) kmalloc(memsize, GFP_USER); | 314 | e = kmalloc(memsize, GFP_USER); |
315 | if (!e) | 315 | if (!e) |
316 | goto out; | 316 | goto out; |
317 | 317 | ||
@@ -542,7 +542,7 @@ static void kill_node(Node *e) | |||
542 | static ssize_t | 542 | static ssize_t |
543 | bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) | 543 | bm_entry_read(struct file * file, char __user * buf, size_t nbytes, loff_t *ppos) |
544 | { | 544 | { |
545 | Node *e = file->f_dentry->d_inode->i_private; | 545 | Node *e = file->f_path.dentry->d_inode->i_private; |
546 | loff_t pos = *ppos; | 546 | loff_t pos = *ppos; |
547 | ssize_t res; | 547 | ssize_t res; |
548 | char *page; | 548 | char *page; |
@@ -576,7 +576,7 @@ static ssize_t bm_entry_write(struct file *file, const char __user *buffer, | |||
576 | size_t count, loff_t *ppos) | 576 | size_t count, loff_t *ppos) |
577 | { | 577 | { |
578 | struct dentry *root; | 578 | struct dentry *root; |
579 | Node *e = file->f_dentry->d_inode->i_private; | 579 | Node *e = file->f_path.dentry->d_inode->i_private; |
580 | int res = parse_command(buffer, count); | 580 | int res = parse_command(buffer, count); |
581 | 581 | ||
582 | switch (res) { | 582 | switch (res) { |
@@ -584,7 +584,7 @@ static ssize_t bm_entry_write(struct file *file, const char __user *buffer, | |||
584 | break; | 584 | break; |
585 | case 2: set_bit(Enabled, &e->flags); | 585 | case 2: set_bit(Enabled, &e->flags); |
586 | break; | 586 | break; |
587 | case 3: root = dget(file->f_vfsmnt->mnt_sb->s_root); | 587 | case 3: root = dget(file->f_path.mnt->mnt_sb->s_root); |
588 | mutex_lock(&root->d_inode->i_mutex); | 588 | mutex_lock(&root->d_inode->i_mutex); |
589 | 589 | ||
590 | kill_node(e); | 590 | kill_node(e); |
@@ -610,7 +610,7 @@ static ssize_t bm_register_write(struct file *file, const char __user *buffer, | |||
610 | Node *e; | 610 | Node *e; |
611 | struct inode *inode; | 611 | struct inode *inode; |
612 | struct dentry *root, *dentry; | 612 | struct dentry *root, *dentry; |
613 | struct super_block *sb = file->f_vfsmnt->mnt_sb; | 613 | struct super_block *sb = file->f_path.mnt->mnt_sb; |
614 | int err = 0; | 614 | int err = 0; |
615 | 615 | ||
616 | e = create_entry(buffer, count); | 616 | e = create_entry(buffer, count); |
@@ -699,7 +699,7 @@ static ssize_t bm_status_write(struct file * file, const char __user * buffer, | |||
699 | switch (res) { | 699 | switch (res) { |
700 | case 1: enabled = 0; break; | 700 | case 1: enabled = 0; break; |
701 | case 2: enabled = 1; break; | 701 | case 2: enabled = 1; break; |
702 | case 3: root = dget(file->f_vfsmnt->mnt_sb->s_root); | 702 | case 3: root = dget(file->f_path.mnt->mnt_sb->s_root); |
703 | mutex_lock(&root->d_inode->i_mutex); | 703 | mutex_lock(&root->d_inode->i_mutex); |
704 | 704 | ||
705 | while (!list_empty(&entries)) | 705 | while (!list_empty(&entries)) |