mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
imx8qxp_pxl2dpi_get_available_ep_from_port() returns ERR_PTR()
on errors. imx8qxp_pxl2dpi_find_next_bridge() stores its return
value in a __free(device_node) variable before checking IS_ERR().
When the function returns on the error path, the cleanup action calls
of_node_put() on the ERR_PTR() value.
Do not let a device_node cleanup variable hold error pointers. Change
imx8qxp_pxl2dpi_get_available_ep_from_port() to return an int and pass
the endpoint node through an output argument. Initialize the output
argument to NULL so callers hold either NULL on error paths or a valid
device_node pointer on successful path.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| imx-ldb-helper.c | ||
| imx-ldb-helper.h | ||
| imx-legacy-bridge.c | ||
| imx8mp-hdmi-pai.c | ||
| imx8mp-hdmi-pvi.c | ||
| imx8mp-hdmi-tx.c | ||
| imx8qm-ldb.c | ||
| imx8qxp-ldb.c | ||
| imx8qxp-pixel-combiner.c | ||
| imx8qxp-pixel-link.c | ||
| imx8qxp-pxl2dpi.c | ||
| imx93-mipi-dsi.c | ||
| Kconfig | ||
| Makefile | ||