]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Don't go bang in GuC log if no GuC
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 10 Dec 2021 04:40:22 +0000 (20:40 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Sat, 11 Dec 2021 01:00:25 +0000 (17:00 -0800)
commitcacb521882ccceccfb09d5b77838f05d202e5f03
treeb473134d538a4e23b32e4d9d88e162b94e3c9cd1
parentc239ecd5793d491a02dc99f29285aff26658adf0
drm/i915/guc: Don't go bang in GuC log if no GuC

If the GuC has failed to load for any reason and then the user pokes
the debugfs GuC log interface, a BUG and/or null pointer deref can
occur. Don't let that happen.

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211210044022.1842938-5-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_log_debugfs.c