Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
fs-proc-task_nommuc-shift-mm_access-from-m_start-to-proc_maps_open-ch…
Browse files Browse the repository at this point in the history
…eckpatch-fixes

WARNING: Missing a blank line after declarations
torvalds#46: FILE: fs/proc/task_nommu.c:280:
+		int err = PTR_ERR(priv->mm);
+		seq_release_private(inode, file);

total: 0 errors, 1 warnings, 57 lines checked

./patches/fs-proc-task_nommuc-shift-mm_access-from-m_start-to-proc_maps_open.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 authored and broonie committed Sep 1, 2014
1 parent 827e15b commit 0e5ade8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/proc/task_nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ static int maps_open(struct inode *inode, struct file *file,
priv->mm = proc_mem_open(inode, PTRACE_MODE_READ);
if (IS_ERR(priv->mm)) {
int err = PTR_ERR(priv->mm);

seq_release_private(inode, file);
return err;
}
Expand Down

0 comments on commit 0e5ade8

Please sign in to comment.