Re: [PATCH next] drm/i915/huc: Fix missing error code in intel_huc_init()

2023-06-14 Thread Ceraolo Spurio, Daniele
On 6/14/2023 1:41 PM, Harshit Mogalapalli wrote: 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 r

[PATCH next] drm/i915/huc: Fix missing error code in intel_huc_init()

2023-06-14 Thread Harshit Mogalapalli
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. Fi