diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-11-13 19:28:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-11-13 23:30:16 +0100 |
commit | a56dcc6b455830776899ce3686735f1172e12243 (patch) | |
tree | db0f7d98c6120e69e1b9a238655a4c5462429b88 /drivers/net/can | |
parent | slip: Fix memory leak in slip_open error path (diff) | |
download | linux-a56dcc6b455830776899ce3686735f1172e12243.tar.xz linux-a56dcc6b455830776899ce3686735f1172e12243.zip |
net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size()
This code is supposed to test for negative error codes and partial
reads, but because sizeof() is size_t (unsigned) type then negative
error codes are type promoted to high positive values and the condition
doesn't work as expected.
Fixes: 332f989a3b00 ("CDC-NCM: handle incomplete transfer of MTU")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can')
0 files changed, 0 insertions, 0 deletions