diff options
| author | Dan Carpenter <[email protected]> | 2019-10-01 15:01:17 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-10-04 11:06:47 +0200 |
| commit | 7101949f36fc77b530b73e4c6bd0066a2740d75b (patch) | |
| tree | 2d5779546b084f5ee55ea61a22f33b8f71cae930 /net/lapb | |
| parent | 2636d49b64671d3d90ecc4daf971b58df3956519 (diff) | |
usb: typec: tcpm: usb: typec: tcpm: Fix a signedness bug in tcpm_fw_get_caps()
The "port->typec_caps.data" and "port->typec_caps.type" variables are
enums and in this context GCC will treat them as an unsigned int so they
can never be less than zero.
Fixes: ae8a2ca8a221 ("usb: typec: Group all TCPCI/TCPM code together")
Signed-off-by: Dan Carpenter <[email protected]>
Cc: stable <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/20191001120117.GA23528@mwanda
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions