linux_dsm_epyc7002/drivers/net/ethernet/ti
Julia Lawall f37c54b6a6 drivers/net/ethernet/ti/davinci_cpdma.c: Remove potential NULL dereference
If the NULL test is necessary, the initialization involving a dereference of
the tested value should be moved after the NULL test.

The sematic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
type T;
expression E;
identifier i,fld;
statement S;
@@

- T i = E->fld;
+ T i;
  ... when != E
      when != i
  if (E == NULL) S
+ i = E->fld;
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-14 16:59:43 -07:00
..
cpmac.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-02-19 16:03:15 -05:00
cpsw_ale.c netdev: driver: ethernet: add cpsw address lookup engine support 2012-03-19 18:02:05 -04:00
cpsw_ale.h netdev: driver: ethernet: add cpsw address lookup engine support 2012-03-19 18:02:05 -04:00
cpsw.c driver: net: ethernet: cpsw: runtime PM support 2012-07-18 09:40:54 -07:00
davinci_cpdma.c drivers/net/ethernet/ti/davinci_cpdma.c: Remove potential NULL dereference 2012-08-14 16:59:43 -07:00
davinci_cpdma.h davinci*/tlan/cpmac: Move the Texas Instruments (TI) drivers 2011-08-12 03:41:10 -07:00
davinci_emac.c net: ethernet: davinci_emac: add pm_runtime support 2012-07-22 12:46:42 -07:00
davinci_mdio.c driver: net: ethernet: davinci_mdio: runtime PM support 2012-07-18 09:40:54 -07:00
Kconfig ARM: OMAP2+: Kconfig: convert SOC_OMAPAM33XX to SOC_AM33XX 2012-05-10 11:10:07 -07:00
Makefile netdev: driver: ethernet: Add TI CPSW driver 2012-03-19 18:02:05 -04:00
tlan.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2012-05-07 23:35:40 -04:00
tlan.h davinci*/tlan/cpmac: Move the Texas Instruments (TI) drivers 2011-08-12 03:41:10 -07:00