patch-2.0.30 linux/drivers/char/serial.c

Next file: linux/drivers/net/3c59x.c
Previous file: linux/drivers/char/random.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.29/linux/drivers/char/serial.c linux/drivers/char/serial.c
@@ -2959,5 +2959,9 @@
 		if (rs_table[i].type != PORT_UNKNOWN)
 			release_region(rs_table[i].port, 8);
 	}
+	if (tmp_buf) {
+		free_page(tmp_buf);
+		tmp_buf = NULL;
+	}
 }
 #endif /* MODULE */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov