commit | a10e2bde5d9173570d97a4d7cdf038232baaf47e | [log] [tgz] |
---|---|---|
author | Lucas Stach <l.stach@pengutronix.de> | Wed Apr 27 12:27:02 2016 +0200 |
committer | Lucas Stach <l.stach@pengutronix.de> | Fri May 06 10:42:33 2016 +0200 |
tree | a02474c1e2d5c4b275732ba390ba2115d7fd44b1 | |
parent | 0e7f26e6b950fe586c8aa6ff6f87b9936ae32ebb [diff] |
drm/etnaviv: fix mmap operations for userptr and dma-buf objects Add an indirect object operations call to allow distinct implementations of the mmap operation based on the type of the object. This ensures that the exporter is called to set up the mmap for imported dma-bufs and disallows mapping of userptr objects through the DRM file, as this might lead to serious corruption of kernel internal state. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>