1
linux/drivers/s390/net
Julia Lawall 9b3efc0133 [S390]: Fix use of skb after netif_rx
Recently, Wang Chen submitted a patch
(d30f53aeb3) to move a call to netif_rx(skb)
after a subsequent reference to skb, because netif_rx may call kfree_skb on
its argument.  netif_rx_ni calls netif_rx, so the same problem occurs in
the files below.

I have left the updating of dev->last_rx after the calls to netif_rx_ni
because it seems time dependent, but moved the other field updates before.

This was found using the following semantic match.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression skb, e,e1;
@@

(
 netif_rx(skb);
|
 netif_rx_ni(skb);
)
  ... when != skb = e
(
  skb = e1
|
* skb
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-12-11 02:45:29 -08:00
..
claw.c remove asm/bitops.h includes 2007-10-19 11:53:41 -07:00
claw.h Fix misc .c/.h comment typos 2006-11-30 05:24:39 +01:00
ctcdbug.c
ctcdbug.h
ctcmain.c [S390]: Fix use of skb after netif_rx 2007-12-11 02:45:29 -08:00
ctcmain.h [PATCH] s390: remove tty support from ctc network device driver [1/2] 2006-04-20 17:27:54 -04:00
cu3088.c [S390] Get rid of a lot of sparse warnings. 2007-02-05 21:16:47 +01:00
cu3088.h
fsm.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
fsm.h
Kconfig [S390] Kconfig: use common Kconfig files for s390. 2007-05-10 15:46:08 +02:00
lcs.c lcs: Channel errors drive lcs_recovery which leads to kernel panic. 2007-10-10 16:54:41 -07:00
lcs.h lcs: Channel errors drive lcs_recovery which leads to kernel panic. 2007-10-10 16:54:41 -07:00
Makefile [S390]: Rewrite of the IUCV base code, part 1 2007-02-08 13:36:44 -08:00
netiucv.c [S390]: Fix use of skb after netif_rx 2007-12-11 02:45:29 -08:00
qeth_eddp.c qeth: EDDP does not work on large MTUs 2007-10-10 16:54:40 -07:00
qeth_eddp.h s390: qeth driver connection hang 2007-05-08 01:15:35 -04:00
qeth_fs.h [netdrvr s/390] trim trailing whitespace 2006-05-26 21:58:38 -04:00
qeth_main.c qeth: remove header_ops bug 2007-10-19 23:00:02 -04:00
qeth_mpc.c [S390] Avoid sparse warnings. 2007-05-10 15:45:52 +02:00
qeth_mpc.h qeth: provide specific message for OSA-adapters exclusively used 2007-08-31 06:52:58 -04:00
qeth_proc.c s390: scatter-gather for inbound traffic in qeth driver 2007-07-16 18:28:04 -04:00
qeth_sys.c qeth: dont return the return values of void functions. 2007-08-31 06:52:58 -04:00
qeth_tso.h [SK_BUFF]: Introduce tcp_hdr(), remove skb->h.th 2007-04-25 22:25:26 -07:00
qeth.h [NET]: Move hardware header operations out of netdevice. 2007-10-10 16:52:52 -07:00
smsgiucv.c [S390] Fix smsgiucv init on no iucv machines 2007-11-05 11:10:16 +01:00
smsgiucv.h