patch-2.2.18 linux/net/x25/x25_dev.c
Next file: linux/net/x25/x25_out.c
Previous file: linux/net/x25/af_x25.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Tue Sep 26 21:50:14 2000
- Orig file:
v2.2.17/net/x25/x25_dev.c
- Orig date:
Fri Apr 21 12:47:17 2000
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/net/x25/x25_dev.c linux/net/x25/x25_dev.c
@@ -14,6 +14,7 @@
*
* History
* X.25 001 Jonathan Naylor Started coding.
+ * 2000-09-04 Henner Eisen Prevent freeing a dangling skb.
*/
#include <linux/config.h>
@@ -85,12 +86,13 @@
return x25_rx_call_request(skb, neigh, lci);
/*
- * Its not a Call Request, nor is it a control frame, throw it awa
+ * Its not a Call Request, nor is it a control frame.
+ * Let caller throw it away.
*/
/*
x25_transmit_clear_request(neigh, lci, 0x0D);
*/
- kfree_skb(skb);
+ printk(KERN_DEBUG "x25_receive_data(): unknown frame type %2x\n",frametype);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)