commit | d5cf3f98314c1b9d87216e00c30c9fef06ff24c3 | [log] [tgz] |
---|---|---|
author | Jonathan Gray <jsg@jsg.id.au> | Sat Dec 17 16:09:51 2016 +1100 |
committer | Emil Velikov <emil.l.velikov@gmail.com> | Sat Dec 24 17:06:49 2016 +0000 |
tree | 16479426affd410a56731ac1b99a61e4eb1809a6 | |
parent | e3af5368b2c372cfda27bc010b9c98a923d83cd9 [diff] |
xf86drm: adjust device node path for minor base When constructing a path to a device node the minor number retrieved from fstat needs to have the offset of the node type subtracted from it. Control and render node types have the same major as the primary node but each has their own block of minor types at fixed offsets. v2: remove min < base test as requested by Emil Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Jonathan Gray <jsg@jsg.id.au>