]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
fsl/fman: check dereferencing null pointer
authorFlorinel Iordache <florinel.iordache@nxp.com>
Mon, 3 Aug 2020 07:07:33 +0000 (10:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 23:20:15 +0000 (16:20 -0700)
commitcc5d229a122106733a85c279d89d7703f21e4d4f
treea20b099fdecbb89f154dd34b154d57bbc78a756b
parentcc79fd8f557767de90ff199d3b6fb911df43160a
fsl/fman: check dereferencing null pointer

Add a safe check to avoid dereferencing null pointer

Fixes: 57ba4c9b56d8 ("fsl/fman: Add FMan MAC support")
Signed-off-by: Florinel Iordache <florinel.iordache@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_dtsec.c
drivers/net/ethernet/freescale/fman/fman_memac.c
drivers/net/ethernet/freescale/fman/fman_tgec.c