commit | 0dcdf9f64028ec3b75db6b691560f8286f3898bf | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Mar 20 16:21:17 2020 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Mar 23 21:05:13 2020 -0700 |
tree | f4c63d1d07996645851f6406368ba4e7d7e1084b | |
parent | dddeb30bfc43926620f954266fd12c65a7206f07 [diff] |
NFC: fdp: Fix a signedness bug in fdp_nci_send_patch() The nci_conn_max_data_pkt_payload_size() function sometimes returns -EPROTO so "max_size" needs to be signed for the error handling to work. We can make "payload_size" an int as well. Fixes: a06347c04c13 ("NFC: Add Intel Fields Peak NFC solution driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>