diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2020-07-09 16:49:31 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2020-07-14 20:30:58 +0300 |
commit | 42de9b0a2bb29238d316bd56407c0e727d6d7ff9 (patch) | |
tree | f9bf2aab05c898b514bc88b469bcf5509d5a1151 /drivers/usb/cdns3/debug.h | |
parent | 11ba468877bb23f28956a35e896356252d63c983 (diff) |
drm/i915/selftests: Fix compare functions provided for sorting
Both cmp_u32 and cmp_u64 are comparing the pointers instead of the value
at those pointers. This will result in incorrect/unsorted list. Fix it
by deferencing the pointers before comparison.
Fixes: 4ba74e53ada3 ("drm/i915/selftests: Verify frequency scaling with RPS")
Fixes: 8757797ff9c9 ("drm/i915/selftests: Repeat the rps clock frequency measurement")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200709154931.23310-1-sudeep.holla@arm.com
(cherry picked from commit 2196dfea896f7027b43bae848890ce4aec5c8724)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/usb/cdns3/debug.h')
0 files changed, 0 insertions, 0 deletions