Esina Ekaterina 488e0bf7f3 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>
2023-01-13 21:34:31 -08:00
..
2021-07-27 20:11:45 +01:00
2022-06-07 10:45:25 +02:00
2021-10-22 10:16:18 -07:00
2021-07-27 20:11:45 +01:00
2021-07-27 20:11:45 +01:00
2021-07-27 20:11:45 +01:00
2021-07-27 20:11:45 +01:00
2021-07-27 20:11:45 +01:00
2021-07-27 20:11:45 +01:00
2021-07-27 20:11:45 +01:00
2021-07-27 20:11:45 +01:00