In cdns_mhdp_atomic_enable(), the return value of drm_mode_duplicate() is
assigned to mhdp_state->current_mode, and there is a dereference of it in
drm_mode_set_name(), which will lead to a NULL pointer dereference on
failure of drm_mode_duplicate().
Fix this bug add a check of mhdp_state->current_mode.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
cdns-dsi-core.c | ||
cdns-dsi-core.h | ||
cdns-dsi-j721e.c | ||
cdns-dsi-j721e.h | ||
cdns-mhdp8546-core.c | ||
cdns-mhdp8546-core.h | ||
cdns-mhdp8546-hdcp.c | ||
cdns-mhdp8546-hdcp.h | ||
cdns-mhdp8546-j721e.c | ||
cdns-mhdp8546-j721e.h |