swapfile: fix name leak in swapoff
authorXiaotian Feng <xtfeng@gmail.com>
Fri, 16 Nov 2012 22:14:55 +0000 (14:14 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Nov 2012 22:33:04 +0000 (14:33 -0800)
commitf58b59c1df3cb990d644018e1461cd4acd3c1700
tree7681f5438bac5081ff9b84b3923c610873914972
parentbea8c150a7efbc0f204e709b7274fe273f55e0d3
swapfile: fix name leak in swapoff

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

[akpm@linux-foundation.org: cleanup]
Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swapfile.c