diff options
author | Rex Nie <rex.nie@jaguarmicro.com> | 2024-10-30 16:36:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-11-14 15:21:13 +0300 |
commit | 74d8cee747b37cd9f5ca631f678e66e7f40f2b5f (patch) | |
tree | c1397b3949742e5edd0e18feeeb68a3758e4efc8 /.gitignore | |
parent | 06b98197b69e2f2af9cb1991ee0b1c876edf7b86 (diff) | |
download | linux-74d8cee747b37cd9f5ca631f678e66e7f40f2b5f.tar.xz |
usb: typec: qcom-pmic: init value of hdr_len/txbuf_len earlier
commit 029778a4fd2c90c2e76a902b797c2348a722f1b8 upstream.
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: a4422ff22142 (" usb: typec: qcom: Add Qualcomm PMIC Type-C driver")
Signed-off-by: Rex Nie <rex.nie@jaguarmicro.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Acked-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20241030133632.2116-1-rex.nie@jaguarmicro.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions