net: remove sockptr_advance
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jul 2020 16:38:35 +0000 (18:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jul 2020 20:43:40 +0000 (13:43 -0700)
commitd3c48151512922dd35f1f393b30b9138e4441d14
treef283952cf8a17bf8ecca6c4f11aab2252aaa8b46
parent035bfd051eae5b365368be915dfaf916aa501a52
net: remove sockptr_advance

sockptr_advance never properly worked.  Replace it with _offset variants
of copy_from_sockptr and copy_to_sockptr.

Fixes: ba423fdaa589 ("net: add a new sockptr_t type")
Reported-by: Jason A. Donenfeld <Jason@zx2c4.com>
Reported-by: Ido Schimmel <idosch@idosch.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Jason A. Donenfeld <Jason@zx2c4.com>
Tested-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chtls/chtls_main.c
include/linux/sockptr.h
net/dccp/proto.c
net/ipv4/netfilter/arp_tables.c
net/ipv4/netfilter/ip_tables.c
net/ipv4/tcp.c
net/ipv6/ip6_flowlabel.c
net/ipv6/netfilter/ip6_tables.c
net/netfilter/x_tables.c
net/tls/tls_main.c