patch-2.2.17 linux/drivers/net/comx-proto-ppp.c

Next file: linux/drivers/net/comx.c
Previous file: linux/drivers/net/comx-proto-fr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.16/drivers/net/comx-proto-ppp.c linux/drivers/net/comx-proto-ppp.c
@@ -206,6 +206,9 @@
 
 	ch->LINE_privdata = kmalloc(sizeof(struct syncppp_data), GFP_KERNEL);
 
+	if (!ch->LINE_privdata)
+		return -ENOMEM;
+
 	pppdev->dev = dev;
 	sppp_attach(pppdev);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)