diff options
| author | Rex Nie <[email protected]> | 2024-10-30 13:36:32 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-11-05 12:54:54 +0000 |
| commit | 029778a4fd2c90c2e76a902b797c2348a722f1b8 (patch) | |
| tree | 24c933439251280d99eda6bc89271dcc065adca9 /rust/helpers/helpers.c | |
| parent | usb: musb: sunxi: Fix accessing an released usb phy (diff) | |
| download | kernel-029778a4fd2c90c2e76a902b797c2348a722f1b8.tar.gz kernel-029778a4fd2c90c2e76a902b797c2348a722f1b8.zip | |
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: [email protected]
Fixes: a4422ff22142 (" usb: typec: qcom: Add Qualcomm PMIC Type-C driver")
Signed-off-by: Rex Nie <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Acked-by: Bryan O'Donoghue <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
