summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-10-01 15:01:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-04 11:06:47 +0200
commit7101949f36fc77b530b73e4c6bd0066a2740d75b (patch)
tree2d5779546b084f5ee55ea61a22f33b8f71cae930 /Documentation
parent2636d49b64671d3d90ecc4daf971b58df3956519 (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 <dan.carpenter@oracle.com> Cc: stable <stable@vger.kernel.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20191001120117.GA23528@mwanda Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions