All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH iproute2 0/2] ip/tunnel: Do not free() answer on rtnl_talk() error, correct ip6gre
@ 2017-12-20  7:57 Serhey Popovych
  2017-12-20  7:57 ` [PATCH iproute2 1/2] utils: ll_addr: Handle ARPHRD_IP6GRE in ll_addr_n2a() Serhey Popovych
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Serhey Popovych @ 2017-12-20  7:57 UTC (permalink / raw)
  To: netdev

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-26 17:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-20  7:57 [PATCH iproute2 0/2] ip/tunnel: Do not free() answer on rtnl_talk() error, correct ip6gre Serhey Popovych
2017-12-20  7:57 ` [PATCH iproute2 1/2] utils: ll_addr: Handle ARPHRD_IP6GRE in ll_addr_n2a() Serhey Popovych
2017-12-20  7:57 ` [PATCH iproute2 2/2] ip/tunnel: No need to free answer after rtnl_talk() on error Serhey Popovych
2017-12-26 17:08 ` [PATCH iproute2 0/2] ip/tunnel: Do not free() answer on rtnl_talk() error, correct ip6gre Stephen Hemminger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.