Subject: Re: [PATCH net] ip6_tunnel: fix error code when tunnel exists

From: Nicolas Dichtel <[email-masked]>
Date: Fri, 13 Mar 2015 15:46:53 +0100

Le 13/03/2015 14:43, Eric Dumazet a écrit :
[snip]
> These IS_ERR_OR_NULL(t) looks like defensive/lazy programming to me.
>
> A NULL pointer should not be allowed here.
>
> If t is not valid, it should be a plain error code mapping.
>
> I wish we get rid of all IS_ERR_OR_NULL() uses in networking tree,
> instead of adding plenty of them.
Ok, I agree. It was to minimize the patch.
I will rework it.