commit | a56dcc6b455830776899ce3686735f1172e12243 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Nov 13 21:28:31 2019 +0300 |
committer | David S. Miller <davem@davemloft.net> | Wed Nov 13 14:30:16 2019 -0800 |
tree | db0f7d98c6120e69e1b9a238655a4c5462429b88 | |
parent | 3b5a39979dafea9d0cd69c7ae06088f7a84cdafa [diff] |
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>