Re: [patch -next v2] ipip: dereferencing an ERR_PTR in ip_tunnel_init_net()

David Miller
2013-08-21T06:33:01Z

From: Dan Carpenter <dan.carpenter@oracle.com>
Date: Tue, 20 Aug 2013 01:23:07 +0300

> The __ip_tunnel_create() function returns an ERR_PTR on error so we need
> to check for that before dereferencing. This bug was added in commit
> 6c742e714d8c2 ("ipip: add x-netns support").
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
> v2: Eric Dumazet said v1 patch looked racy and suggested the v2 fix.
>

This doesn't apply cleanly, you'll need to respin it.