patch-1.3.25 linux/net/ax25/af_ax25.c

Next file: linux/net/core/dev.c
Previous file: linux/net/Changes
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.24/linux/net/ax25/af_ax25.c linux/net/ax25/af_ax25.c
@@ -476,6 +476,8 @@
 			if (ax25_findbyuid(sax->sax25_uid))
 				return -EEXIST;
 			a = (ax25_uid_assoc *)kmalloc(sizeof(*a), GFP_KERNEL);
+			if (a == NULL)
+				return -ENOMEM;
 			a->uid  = sax->sax25_uid;
 			a->call = sax->sax25_call;
 			a->next = ax25_uid_list;

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this