Skip to content
Commit f58b59c1 authored by Xiaotian Feng's avatar Xiaotian Feng Committed by Linus Torvalds
Browse files

swapfile: fix name leak in swapoff



There's a name leak introduced by commit 91a27b2a ("vfs: define
struct filename and have getname() return it").  Add the missing
putname.

[akpm@linux-foundation.org: cleanup]
Signed-off-by: default avatarXiaotian Feng <dannyfeng@tencent.com>
Reviewed-by: default avatarJeff Layton <jlayton@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bea8c150
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment