patch-2.1.27 linux/net/802/llc_macinit.c

Next file: linux/net/Config.in
Previous file: linux/net/802/fddi.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.26/linux/net/802/llc_macinit.c linux/net/802/llc_macinit.c
@@ -51,6 +51,8 @@
 	frameptr fr;
 	int free=1;
 
+	lp->inc_skb=NULL;
+	
 	/*
 	 *	Truncate buffer to true 802.3 length
 	 *	[FIXME: move to 802.2 demux]
@@ -87,6 +89,7 @@
 			case TEST_RSP:
 				lp->llc_callbacks|=LLC_TEST_INDICATION;
 				lp->inc_skb=skb;
+				free=0;
 				break;
 			case XID_CMD:
 				/*
@@ -110,12 +113,14 @@
 				}
 				lp->llc_callbacks|=LLC_XID_INDICATION;
 				lp->inc_skb=skb;
+				free=0;
 				break;
 
 			case UI_CMD:
 				lp->llc_callbacks|=LLC_UI_DATA;
 				skb_pull(skb,3);
 				lp->inc_skb=skb;
+				free=0;
 				break;
 
 			default:

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