linux/drivers/net/ethernet/freescale/enetc
Po Liu 571cf29644 net:enetc: bug fix for qos sfi operate space after freed
'Dan Carpenter' reported:
This code frees "sfi" and then dereferences it on the next line:
>                 kfree(sfi);
>                 clear_bit(sfi->index, epsfp.psfp_sfi_bitmap);

This "sfi->index" should be "index".

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Po Liu <Po.Liu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-05-07 13:05:46 -07:00
..
enetc_cbdr.c enetc: Configure the Time-Aware Scheduler via tc-taprio offload 2019-11-16 12:49:16 -08:00
enetc_ethtool.c enetc: Add dynamic allocation of extended Rx BD rings 2020-03-10 15:48:54 -07:00
enetc_hw.h net: enetc: add tc flower psfp offload driver 2020-05-01 16:08:20 -07:00
enetc_mdio.c enetc: Set MDIO_CFG_HOLD to the recommended value of 2 2020-01-05 23:22:32 -08:00
enetc_msg.c enetc: Add vf to pf messaging support 2019-01-24 21:55:53 -08:00
enetc_pci_mdio.c net: enetc: fix an issue about leak system resources 2020-05-04 10:51:20 -07:00
enetc_pf.c net: enetc: add tc flower psfp offload driver 2020-05-01 16:08:20 -07:00
enetc_pf.h enetc: Make MDIO accessors more generic and export to include/linux/fsl 2020-01-05 23:22:32 -08:00
enetc_ptp.c enetc: Add missing call to 'pci_free_irq_vectors()' in probe and remove functions 2019-08-31 23:53:17 -07:00
enetc_qos.c net:enetc: bug fix for qos sfi operate space after freed 2020-05-07 13:05:46 -07:00
enetc_vf.c enetc: Remove unused variable 'enetc_drv_name' 2020-03-23 13:09:32 -07:00
enetc.c net: enetc: add tc flower psfp offload driver 2020-05-01 16:08:20 -07:00
enetc.h net: enetc: add tc flower psfp offload driver 2020-05-01 16:08:20 -07:00
Kconfig enetc: Add dynamic allocation of extended Rx BD rings 2020-03-10 15:48:54 -07:00
Makefile enetc: Make MDIO accessors more generic and export to include/linux/fsl 2020-01-05 23:22:32 -08:00