From mboxrd@z Thu Jan 1 00:00:00 1970 From: Serhey Popovych Subject: [PATCH iproute2 0/2] ip/tunnel: Do not free() answer on rtnl_talk() error, correct ip6gre Date: Wed, 20 Dec 2017 09:57:08 +0200 Message-ID: <1513756630-14639-1-git-send-email-serhe.popovych@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-lf0-f66.google.com ([209.85.215.66]:43545 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932070AbdLTH5P (ORCPT ); Wed, 20 Dec 2017 02:57:15 -0500 Received: by mail-lf0-f66.google.com with SMTP id o26so8711664lfc.10 for ; Tue, 19 Dec 2017 23:57:14 -0800 (PST) Received: from tuxracer.localdomain ([2a01:6d80::195:20:96:53]) by smtp.gmail.com with ESMTPSA id a7sm1210048lfh.10.2017.12.19.23.57.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Dec 2017 23:57:12 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: In this series I present next set of improvements/fixes: 1) If rtnl_talk(), called with answer != NULL fails it never returns with allocated answer: no need to initialize answer and free() it in the caller on error. 2) Correct ip6gre print endpoint address printing with ll_addr_n2a(): endpoints are IPv6 addresses, not hex dump. See individual patch description message for details. Thanks, Serhii Serhey Popovych (2): utils: ll_addr: Handle ARPHRD_IP6GRE in ll_addr_n2a() ip/tunnel: No need to free answer after rtnl_talk() on error ip/link_gre.c | 3 +-- ip/link_gre6.c | 3 +-- ip/link_ip6tnl.c | 3 +-- ip/link_iptnl.c | 3 +-- ip/link_vti.c | 3 +-- ip/link_vti6.c | 3 +-- lib/ll_addr.c | 3 ++- 7 files changed, 8 insertions(+), 13 deletions(-) -- 1.7.10.4