diff options
author | Harshit Mogalapalli <[email protected]> | 2023-06-14 15:36:46 -0700 |
---|---|---|
committer | Daniele Ceraolo Spurio <[email protected]> | 2023-06-15 14:12:19 -0700 |
commit | ce432fd34cc6c7b7af06d1403ec0be19d1e518dc (patch) | |
tree | 6768f96b7a5f66e5e14464f91a2a88c1e0debe4c /lib/mpi/mpi-sub-ui.c | |
parent | 561055b810cac89a4b903a53ebdf34f2cc6e2b3d (diff) |
drm/i915/huc: Fix missing error code in intel_huc_init()
Smatch warns:
drivers/gpu/drm/i915/gt/uc/intel_huc.c:388
intel_huc_init() warn: missing error code 'err'
When the allocation of VMAs fail: The value of err is zero at this
point and it is passed to PTR_ERR and also finally returning zero which
is success instead of failure.
Fix this by adding the missing error code when VMA allocation fails.
Fixes: 08872cb13a71 ("drm/i915/mtl/huc: auth HuC via GSC")
Signed-off-by: Harshit Mogalapalli <[email protected]>
Reviewed-by: Daniele Ceraolo Spurio <[email protected]>
Signed-off-by: Daniele Ceraolo Spurio <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions