[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20140717.145056.746494607843911465.davem@davemloft.net>
Date: Thu, 17 Jul 2014 14:50:56 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: therbert@...gle.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next 2/9] gue: Support for Generic UDP
Encapsulation RX path
From: Tom Herbert <therbert@...gle.com>
Date: Wed, 16 Jul 2014 21:14:30 -0700 (PDT)
> +static inline struct gue *gue_from_sock(struct sock *sk)
> +{
> + return (struct gue *)sk->sk_user_data;
> +}
Casting a void pointer like this is never appropriate.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists