net/tcp: switch ->md5_parse to sockptr_t
Pass a sockptr_t to prepare for set_fs-less handling of the kernel pointer from bpf-cgroup. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
91ac1ccaff
commit
d4c19c4914
@@ -3249,7 +3249,8 @@ static int do_tcp_setsockopt(struct sock *sk, int level,
|
||||
#ifdef CONFIG_TCP_MD5SIG
|
||||
case TCP_MD5SIG:
|
||||
case TCP_MD5SIG_EXT:
|
||||
err = tp->af_specific->md5_parse(sk, optname, optval, optlen);
|
||||
err = tp->af_specific->md5_parse(sk, optname,
|
||||
USER_SOCKPTR(optval), optlen);
|
||||
break;
|
||||
#endif
|
||||
case TCP_USER_TIMEOUT:
|
||||
|
Reference in New Issue
Block a user