Skip to contentSkip to conversation

swapfile.c - vfree() checking cleanups

PATCH RESEND Applied [email protected] 1 participant 1 message Jan 4, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 17/29 swapfile.c - vfree() checking cleanups

swapfile.c vfree() checking cleanups.

Signed-off by: James Lamanna <[email protected]>

 swapfile.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)
mm/swapfile.c +1 -2
@@ -1592,8 +1592,7 @@
 		++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:

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors