linux_dsm_epyc7002/drivers/soc/fsl/qe
Wen Yang 8d68100ab4 soc/fsl/qe: fix err handling of ucc_of_parse_tdm
Currently there are some issues with the ucc_of_parse_tdm function:
1, a possible null pointer dereference in ucc_of_parse_tdm,
detected by the semantic patch deref_null.cocci,
with the following warning:
drivers/soc/fsl/qe/qe_tdm.c:177:21-24: ERROR: pdev is NULL but dereferenced.
2, dev gets modified, so in any case that devm_iounmap() will fail
even when the new pdev is valid, because the iomap was done with a
 different pdev.
3, there is no driver bind with the "fsl,t1040-qe-si" or
"fsl,t1040-qe-siram" device. So allocating resources using devm_*()
with these devices won't provide a cleanup path for these resources
when the caller fails.

This patch fixes them.

Suggested-by: Li Yang <leoyang.li@nxp.com>
Suggested-by: Christophe LEROY <christophe.leroy@c-s.fr>
Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Reviewed-by: Peng Hao <peng.hao2@zte.com.cn>
CC: Julia Lawall <julia.lawall@lip6.fr>
CC: Zhao Qiang <qiang.zhao@nxp.com>
CC: David S. Miller <davem@davemloft.net>
CC: netdev@vger.kernel.org
CC: linuxppc-dev@lists.ozlabs.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-01-04 12:50:43 -08:00
..
gpio.c soc: fsl: qe: gpio: Add qe_gpio_set_multiple 2018-07-24 16:18:22 -05:00
Kconfig soc: fsl: cleanup Kconfig menu 2018-07-24 16:19:16 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qe_common.c soc/fsl/qe: fix Oops on CPM1 (and likely CPM2) 2016-09-25 02:38:52 -05:00
qe_ic.c qe/ic: fix a buffer overflow error and add check elsewhere 2016-03-09 10:44:12 -06:00
qe_ic.h
qe_io.c
qe_tdm.c soc/fsl/qe: fix err handling of ucc_of_parse_tdm 2019-01-04 12:50:43 -08:00
qe.c soc: fsl/qe: Use of_get_child_by_name helper 2018-08-30 12:01:28 -05:00
ucc_fast.c fsl/qe: setup clock source for TDM mode 2016-06-07 15:56:30 -07:00
ucc_slow.c
ucc.c soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift() 2018-09-25 13:57:26 -07:00
usb.c