[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAF2d9jgkrwkMKuSjhibZvjvG4fV=SadyU-1AnKNdD8EvHDd5qw@mail.gmail.com>
Date: Fri, 23 Jan 2015 14:40:44 -0800
From: Mahesh Bandewar <maheshb@...gle.com>
To: David Miller <davem@...emloft.net>
Cc: dan.carpenter@...cle.com, linux-netdev <netdev@...r.kernel.org>
Subject: Re: ipvlan: Initial check-in of the IPVLAN driver.
On Mon, Jan 19, 2015 at 1:20 PM, David Miller <davem@...emloft.net> wrote:
> From: Dan Carpenter <dan.carpenter@...cle.com>
> Date: Mon, 19 Jan 2015 17:40:11 +0300
>
>> The patch 2ad7bf363841: "ipvlan: Initial check-in of the IPVLAN
>> driver." from Nov 23, 2014, leads to the following static checker
>> warning:
>>
>> drivers/net/ipvlan/ipvlan_core.c:380 ipvlan_process_v6_outbound()
>> warn: 'dst' isn't an ERR_PTR
>>
>> drivers/net/ipvlan/ipvlan_core.c
>> 378
>> 379 dst = ip6_route_output(dev_net(dev), NULL, &fl6);
>> 380 if (IS_ERR(dst))
>> 381 goto err;
>>
>> The ip6_route_output() function is not documented but it always returns
>> a valid pointer. I believe you are supposed to check something like:
>>
>> if (dst->error) {
>> ret = dst->error;
>> goto error;
>> }
>>
>> 382
>> 383 skb_dst_drop(skb);
>> 384 skb_dst_set(skb, dst);
>
> This is correct.
Thanks Dan for pointing it out. I'll send a patch correcting that code.
--
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