diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-25 15:06:48 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-29 12:12:16 +0000 |
commit | fdc23507d022b68443121ec2c1a951af27c87240 (patch) | |
tree | ef5148a8a1bc44059c556a3a1af4efde0e00cea8 /tests/prime_nv_test.c | |
parent | 57f171707c71560673b4cd0759d3e726883279db (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