]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Don't pollute crtc_state->mode_blob with error pointers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 9 Feb 2022 09:19:27 +0000 (11:19 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 16 Feb 2022 10:32:07 +0000 (12:32 +0200)
commit459bdec32905a88f7aed818b6d8aca6abe4fd029
treee61a7612620c846900e1d173f45179a6b78de592
parent46581af4fe03e916f4c93715f688e91f74aab6cd
drm/atomic: Don't pollute crtc_state->mode_blob with error pointers

Make sure we don't assign an error pointer to crtc_state->mode_blob
as that will break all kinds of places that assume either NULL or a
valid pointer (eg. drm_property_blob_put()).

Cc: stable@vger.kernel.org
Reported-by: fuyufan <fuyufan@huawei.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220209091928.14766-1-ville.syrjala@linux.intel.com
Acked-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/drm_atomic_uapi.c