Skip to content
Commit 029778a4 authored by Rex Nie's avatar Rex Nie Committed by Greg Kroah-Hartman
Browse files

usb: typec: qcom-pmic: init value of hdr_len/txbuf_len earlier



If the read of USB_PDPHY_RX_ACKNOWLEDGE_REG failed, then hdr_len and
txbuf_len are uninitialized. This commit stops to print uninitialized
value and misleading/false data.

Cc: stable@vger.kernel.org
Fixes: a4422ff2 (" usb: typec: qcom: Add Qualcomm PMIC Type-C driver")
Signed-off-by: default avatarRex Nie <rex.nie@jaguarmicro.com>
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: default avatarBjorn Andersson <andersson@kernel.org>
Acked-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20241030133632.2116-1-rex.nie@jaguarmicro.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 498dbd9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment