aboutsummaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorMa Ke <[email protected]>2024-08-02 12:47:36 +0800
committerThomas Zimmermann <[email protected]>2024-08-02 09:23:54 +0200
commit113fd6372a5bb3689aba8ef5b8a265ed1529a78f (patch)
treeae4516fbfd239b95addda5d7849e485a879d90b5 /scripts/rustdoc_test_builder.rs
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: [email protected] Fixes: cf13909aee05 ("drm/fb-helper: Move out modeset config code") Signed-off-by: Ma Ke <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions