amdgpu: fix off by one in handle_table_insert
authorChristian König <christian.koenig@amd.com>
Wed, 15 Aug 2018 11:25:14 +0000 (13:25 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 16 Aug 2018 06:50:04 +0000 (08:50 +0200)
commitbc4c9f442246b8f39a6edf2673400cd97f3e1133
tree30a61e8cb7bb6c8d1be682466c23c0b3cc726d00
parent1e12c16d7697a1223630a507c1032d940794039a
amdgpu: fix off by one in handle_table_insert

Stupid me, max_key must always be larger than key.

Signed-off-by: Christian König <christian.koenig@amd.com>
Bugzilla: https://bugs.freedesktop.org/107552
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
amdgpu/handle_table.c