]> git.baikalelectronics.ru Git - kernel.git/commit
netrom: fix copying in user data in nr_setsockopt
authorChristoph Hellwig <hch@lst.de>
Tue, 4 Jan 2022 09:21:26 +0000 (10:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Jan 2022 12:36:01 +0000 (12:36 +0000)
commit6fefea17191299cba774003597314a941e0336fe
tree1343cf3615f8ef34ae0bffd9571eee9fc02aa47b
parent0991bc491a7de9f43e23c867c0719693edc2a551
netrom: fix copying in user data in nr_setsockopt

This code used to copy in an unsigned long worth of data before
the sockptr_t conversion, so restore that.

Fixes: cf0058199c0b ("net: pass a sockptr_t into ->setsockopt")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/af_netrom.c