swapfile: fix name leak in swapoff
authorXiaotian Feng <[email protected]>
Fri, 16 Nov 2012 22:14:55 +0000 (14:14 -0800)
committerLinus Torvalds <[email protected]>
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.

[[email protected]: cleanup]
Signed-off-by: Xiaotian Feng <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/swapfile.c