Commit ff6bc4ab authored by Vincent Hanquez's avatar Vincent Hanquez Committed by Linus Torvalds

[PATCH] kill one "if (X) vfree(X)" usage

Signed-off-by: default avatarVincent Hanquez <tab@snarc.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b32012ae
......@@ -1634,8 +1634,7 @@ asmlinkage long sys_swapon(const char __user * specialfile, int swap_flags)
++least_priority;
swap_list_unlock();
destroy_swap_extents(p);
if (swap_map)
vfree(swap_map);
vfree(swap_map);
if (swap_file)
filp_close(swap_file, NULL);
out:
......
Markdown is supported
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