Skip to content

Commit

Permalink
TOMOYO: Fix refcount leak in tomoyo_mount_acl().
Browse files Browse the repository at this point in the history
In tomoyo_mount_acl() since 2.6.36, reference to device file (e.g. /dev/sda1)
was leaking.

Signed-off-by: Tetsuo Handa <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
Tetsuo Handa authored and James Morris committed Apr 20, 2011
1 parent d4ab4e6 commit db5ca35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/tomoyo/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ static int tomoyo_mount_acl(struct tomoyo_request_info *r, char *dev_name,
goto out;
}
requested_dev_name = tomoyo_realpath_from_path(&path);
path_put(&path);
if (!requested_dev_name) {
error = -ENOENT;
goto out;
Expand Down

0 comments on commit db5ca35

Please sign in to comment.