Skip to content

Commit

Permalink
drm/tegra: gem: Return 64-bit offset for mmap(2)
Browse files Browse the repository at this point in the history
On 64-bit targets, tegra_gem_mmap() only returns a partial offset to
userspace. As such, subsequent calls to mmap(2) may fail. Change the
arguments to use a 64-bit offset to fix this.

Signed-off-by: Sean Paul <[email protected]>
Acked-by: Erik Faye-Lund <[email protected]>
[[email protected]: tweak commit message]
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
atseanpaul authored and thierryreding committed Apr 2, 2015
1 parent 5c1c071 commit bdf7650
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/uapi/drm/tegra_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ struct drm_tegra_gem_create {

struct drm_tegra_gem_mmap {
__u32 handle;
__u32 offset;
__u32 pad;
__u64 offset;
};

struct drm_tegra_syncpt_read {
Expand Down

0 comments on commit bdf7650

Please sign in to comment.