Skip to content
Commit 2e2e8575 authored by Robert Noland's avatar Robert Noland
Browse files

libdrm_nouveau: The handle that is passed to mmap needs to be drm_handle_t



drm_handle_t is defined to be a u32 on linux and a u64 on everything
else.  This addresses an issue on FreeBSD amd64 where the map offsets
may be greater than 32bits.  When the handle is cast to 32bit, mmap
cannot match the requested map and causes X to crash.

This should be a NOOP on linux since drm_handle_t is always 32bit.

Signed-off-by: default avatarRobert Noland <rnoland@2hip.net>
parent e8d34762
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