Commits
![Dan Carpenter](https://secure.gravatar.com/avatar/85ff6b2aa66ef9f0bf35105783fd2ae2.jpg?s=96&d=mm)
Dan Carpenter committed a56dcc6b455
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>