aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorJohn Harrison <[email protected]>2022-12-21 11:30:31 -0800
committerJohn Harrison <[email protected]>2022-12-22 12:42:23 -0800
commit4071d98b296a5bc5fd4b15ec651bd05800ec9510 (patch)
tree7161669c5e0cf5c5e08f56d32a624e832906b4be /tools/perf/scripts/python/flamegraph.py
parentd830e0dc2e2d4826ebc6a429c2bc098848c9eeda (diff)
drm/i915/uc: Fix two issues with over-size firmware files
In the case where a firmware file is too large (e.g. someone downloaded a web page ASCII dump from github...), the firmware object is released but the pointer is not zerod. If no other firmware file was found then release would be called again leading to a double kfree. Also, the size check was only being applied to the initial firmware load not any of the subsequent attempts. So move the check into a wrapper that is used for all loads. Fixes: 016241168dc5 ("drm/i915/uc: use different ggtt pin offsets for uc loads") Signed-off-by: John Harrison <[email protected]> Reviewed-by: Daniele Ceraolo Spurio <[email protected]> Cc: Alan Previn <[email protected]> Cc: Rodrigo Vivi <[email protected]> Cc: Matt Roper <[email protected]> Cc: Jani Nikula <[email protected]> Cc: Matthew Auld <[email protected]> Cc: "Thomas Hellström" <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions