Skip to content
Commit 677cd97d authored by Rob Herring's avatar Rob Herring Committed by Eric Anholt
Browse files

Return an -ENODEV from drmGetDevice() when no device was found.



Fixes crashes in Mesa on platform devices, which expected *device to
have a device when 0 was returned.

(code from a paste by Rob, commit message by anholt)

Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 7dd28475
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment