|
@@ -976,8 +976,9 @@ void sk_free(struct sock *sk)
|
|
|
|
|
|
struct sock *sk_clone(const struct sock *sk, const gfp_t priority)
|
|
struct sock *sk_clone(const struct sock *sk, const gfp_t priority)
|
|
{
|
|
{
|
|
- struct sock *newsk = sk_alloc(sk->sk_net, sk->sk_family, priority, sk->sk_prot, 0);
|
|
|
|
|
|
+ struct sock *newsk;
|
|
|
|
|
|
|
|
+ newsk = sk_prot_alloc(sk->sk_prot, priority, sk->sk_family);
|
|
if (newsk != NULL) {
|
|
if (newsk != NULL) {
|
|
struct sk_filter *filter;
|
|
struct sk_filter *filter;
|
|
|
|
|