diff options
author | Esina Ekaterina <eesina@astralinux.ru> | 2023-01-12 10:47:03 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-13 21:34:31 -0800 |
commit | 488e0bf7f34af3d42d1d5e56f7a5a7beaff188a3 (patch) | |
tree | e44b34d6c478ea622a697129824083652e0d8ab1 /drivers/net/ethernet/freescale/enetc/enetc.c | |
parent | 4bb4db7f3187c6e3de6b229ffc87cdb30a2d22b6 (diff) |
net: wan: Add checks for NULL for utdm in undo_uhdlc_init and unmap_si_regs
If uhdlc_priv_tsa != 1 then utdm is not initialized.
And if ret != NULL then goto undo_uhdlc_init, where
utdm is dereferenced. Same if dev == NULL.
Found by Astra Linux on behalf of Linux Verification Center
(linuxtesting.org) with SVACE.
Fixes: 8d68100ab4ad ("soc/fsl/qe: fix err handling of ucc_of_parse_tdm")
Signed-off-by: Esina Ekaterina <eesina@astralinux.ru>
Link: https://lore.kernel.org/r/20230112074703.13558-1-eesina@astralinux.ru
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/freescale/enetc/enetc.c')
0 files changed, 0 insertions, 0 deletions