drm/prime: Honor requested file flags when exporting a buffer
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 19 Jun 2013 01:14:20 +0000 (03:14 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 19 Jun 2013 01:34:54 +0000 (11:34 +1000)
commitebc0bad4a05ad63979e8bc115cea3b8abdf814c7
tree46b5fe233dbf40ea9037728bbfc75ae73876c5b4
parentdf63d3ecbca514bad99513b2401448d19a9bb92e
drm/prime: Honor requested file flags when exporting a buffer

The DRM PRIME API passes file flags to the driver for the exported
buffer. Honor them instead of hardcoding 0600.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c