Jiasheng Jiang
4ceb319006
fsl/fman: Check for null pointer after calling devm_ioremap
...
[ Upstream commit d5a73ec96cc57cf67e51b12820fc2354e7ca46f8 ]
As the possible failure of the allocation, the devm_ioremap() may return
NULL pointer.
Take tgec_initialization() as an example.
If allocation fails, the params->base_addr will be NULL pointer and will
be assigned to tgec->regs in tgec_config().
Then it will cause the dereference of NULL pointer in set_mac_address(),
which is called by tgec_init().
Therefore, it should be better to add the sanity check after the calling
of the devm_ioremap().
Fixes: 3933961682 ("fsl/fman: Add FMan MAC driver")
Signed-off-by: Jiasheng Jiang <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2022-01-27 09:19:36 +01:00
..
appletalk
arcnet
bonding
bonding: fix ad_actor_system option setting to default
2021-12-29 12:23:35 +01:00
caif
can
can: softing_cs: softingcs_probe(): fix memleak on registration failure
2022-01-27 09:19:28 +01:00
dsa
net: dsa: rtl8366rb: Fix off-by-one bug
2021-11-17 09:48:34 +01:00
ethernet
fsl/fman: Check for null pointer after calling devm_ioremap
2022-01-27 09:19:36 +01:00
fddi
net: fddi: fix UAF in fza_probe
2021-07-25 14:35:15 +02:00
fjes
fjes: Check for error irq
2021-12-29 12:23:35 +01:00
hamradio
hamradio: improve the incomplete fix to avoid NPD
2021-12-29 12:23:38 +01:00
hippi
hyperv
ieee802154
ieee802154: atusb: fix uninit value in atusb_set_extended_addr
2022-01-11 15:23:31 +01:00
ipvlan
netdevsim
netdevsim: Zero-initialize memory for new map's value in function nsim_bpf_map_alloc
2021-12-22 09:29:38 +01:00
phy
net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ8081
2022-01-11 15:23:32 +01:00
plip
ppp
ppp: ensure minimum packet size in ppp_write()
2022-01-27 09:19:35 +01:00
slip
team
usb
rndis_host: support Hytera digital radios
2022-01-11 15:23:33 +01:00
vmxnet3
vmxnet3: do not stop tx queues after netif_device_detach()
2021-11-17 09:48:21 +01:00
wan
wimax
wireless
mwifiex: Fix possible ABBA deadlock
2022-01-27 09:19:33 +01:00
xen-netback
xen/netback: don't queue unlimited number of packages
2021-12-22 09:29:41 +01:00
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
tun: fix bonding active backup with arp monitoring
2021-11-26 10:47:21 +01:00
veth.c
veth: Do not record rx queue hint in veth_xmit
2022-01-16 09:15:38 +01:00
virtio_net.c
virtio-net: use NETIF_F_GRO_HW instead of NETIF_F_LRO
2021-08-26 08:36:18 -04:00
vrf.c
vrf: don't run conntrack on vrf with !dflt qdisc
2021-12-14 14:48:59 +01:00
vsockmon.c
vxlan.c
xen-netfront.c
xen/netfront: harden netfront against event channel storms
2021-12-22 09:29:40 +01:00