diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2017-01-20 22:23:46 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-20 22:59:53 +0300 |
commit | 7e8d12bc733fc9deeb5d78140cda169030fa2ac5 (patch) | |
tree | e4b5c7b41444ac77941f74ef55c2adf402ec76c5 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 7e79a6836cfd1bac20e2be3fafdc3caca27c9d69 (diff) | |
download | linux-7e8d12bc733fc9deeb5d78140cda169030fa2ac5.tar.xz |
drm/i915/huc: Avoid attempting to authenticate non-existent fw
HuC authentication is called even if HuC firmware is not present in the
system, leading to NULL ptr dereference on not allocated gem_object.
Let's avoid trying to authenticate HuC if its firmware is not loaded
successfully.
Fixes: dac84a388528 ("drm/i915/huc: Support HuC authentication")
v2: Check inside the auth function, split the assert (Michał)
v3: Oops, hit send before compiling, s/huc_fw/huc->fw
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170120192348.2049-1-michal.winiarski@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions