geneve: testing the wrong variable in geneve6_build_skb()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 19 Apr 2016 14:30:56 +0000 (17:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Apr 2016 18:08:00 +0000 (14:08 -0400)
commit1ba64facae5739d91884f8f34f25fef1cb66d930
tree6750e9a93dabd8548661980068117e8ebc460038
parentf937572925d8d7beb5aca1cf180e8b9af623a903
geneve: testing the wrong variable in geneve6_build_skb()

We intended to test "err" and not "skb".

Fixes: aed069df099c ('ip_tunnel_core: iptunnel_handle_offloads returns int and doesn't free skb')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c