summaryrefslogtreecommitdiff
path: root/tests/prime_nv_test.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2021-01-25 15:06:48 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2021-01-29 12:12:16 +0000
commitfdc23507d022b68443121ec2c1a951af27c87240 (patch)
treeef5148a8a1bc44059c556a3a1af4efde0e00cea8 /tests/prime_nv_test.c
parent57f171707c71560673b4cd0759d3e726883279db (diff)
i915/sysfs_clients: Check that client ids are cyclic
The client id used is a cyclic allocator as that reduces the likelihood of userspace seeing the same id used again (and so confusing the new client as the old). Verify that each new client has an id greater than the last. v2: Use (int)(b - a) > 0 to handle wraparound Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Diffstat (limited to 'tests/prime_nv_test.c')
0 files changed, 0 insertions, 0 deletions