RE: [PATCH][next] drm/i915/hdcp: Fix return of value in uninitialized variable ret

2021-01-25 Thread Gupta, Anshuman
; Vivi, Rodrigo ; > David Airlie ; Daniel Vetter ; C, > Ramalingam > ; Gupta, Anshuman ; > Shankar, Uma ; intel-...@lists.freedesktop.org; dri- > de...@lists.freedesktop.org > Cc: kernel-janit...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH][next

Re: [PATCH][next] drm/i915/hdcp: Fix return of value in uninitialized variable ret

2021-01-22 Thread Jani Nikula
On Fri, 22 Jan 2021, Colin King wrote: > From: Colin Ian King > > Currently when there are other connectors on the port using HDCP the > function _intel_hdcp_disable returns a garbage uninitialized value in > variable ret. I believe the intention is to return 0, so return this > literal value

[PATCH][next] drm/i915/hdcp: Fix return of value in uninitialized variable ret

2021-01-22 Thread Colin King
From: Colin Ian King Currently when there are other connectors on the port using HDCP the function _intel_hdcp_disable returns a garbage uninitialized value in variable ret. I believe the intention is to return 0, so return this literal value instead of the value in ret. Addresses-Coverity: