aboutsummaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorMa Ke <make24@iscas.ac.cn>2024-08-02 12:47:36 +0800
committerThomas Zimmermann <tzimmermann@suse.de>2024-08-02 09:23:54 +0200
commit113fd6372a5bb3689aba8ef5b8a265ed1529a78f (patch)
treeae4516fbfd239b95addda5d7849e485a879d90b5 /lib/crypto/mpi/mpi-internal.h
parent9c685f61722d30a22d55bb8a48f7a48bb2e19bcc (diff)
drm/client: fix null pointer dereference in drm_client_modeset_probe
In drm_client_modeset_probe(), the return value of drm_mode_duplicate() is assigned to modeset->mode, which will lead to a possible NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. Cc: stable@vger.kernel.org Fixes: cf13909aee05 ("drm/fb-helper: Move out modeset config code") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20240802044736.1570345-1-make24@iscas.ac.cn
Diffstat (limited to 'lib/crypto/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions