diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-01-07 10:13:12 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-07 17:10:26 +0300 |
commit | 9371937092d5fd502032c1bb4475b36b39b1f1b3 (patch) | |
tree | 0877e10b928746b1f3c0c09628475a6dd471e859 /drivers/nfc/microread | |
parent | b69c5b5886f3986f94ded29896211d520c57aea1 (diff) | |
download | linux-9371937092d5fd502032c1bb4475b36b39b1f1b3.tar.xz |
ax25: uninitialized variable in ax25_setsockopt()
The "opt" variable is unsigned long but we only copy 4 bytes from
the user so the lower 4 bytes are uninitialized.
I have changed the integer overflow checks from ULONG to UINT as well.
This is a slight API change but I don't expect it to break anything.
Fixes: a7b75c5a8c41 ("net: pass a sockptr_t into ->setsockopt")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/nfc/microread')
0 files changed, 0 insertions, 0 deletions