aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2020-09-18 14:27:56 +0000
committerCorey Minyard <[email protected]>2020-09-18 21:34:52 +0000
commitc011410d9145695c460567fa5ba1ade6a7b16f06 (patch)
treebd375d517b90c44e6d43f5430be3f9f601011f80 /drivers/usb/cdns3/cdns3-imx.c
parentipmi: add retry in try_get_dev_id() (diff)
downloadkernel-c011410d9145695c460567fa5ba1ade6a7b16f06.tar.gz
kernel-c011410d9145695c460567fa5ba1ade6a7b16f06.zip
ipmi: msghandler: Fix a signedness bug
The type for the completion codes should be unsigned char instead of char. If it is declared as a normal char then the conditions in __get_device_id() are impossible because the IPMI_DEVICE_IN_FW_UPDATE_ERR error codes are higher than 127. drivers/char/ipmi/ipmi_msghandler.c:2449 __get_device_id() warn: impossible condition '(bmc->cc == 209) => ((-128)-127 == 209)' Fixes: f8910ffa81b0 ("ipmi:msghandler: retry to get device id on an error") Signed-off-by: Dan Carpenter <[email protected]> Message-Id: <20200918142756.GB909725@mwanda> Signed-off-by: Corey Minyard <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions