Re: [PATCH] net: bridge: add missing NULL checks

2018-04-10 Thread Laszlo Toth
On Mon, Apr 09, 2018 at 01:25:41AM +0300, Nikolay Aleksandrov wrote: > On 08/04/18 20:49, Laszlo Toth wrote: > >br_port_get_rtnl() can return NULL > > > >Signed-off-by: Laszlo Toth > >--- > > net/bridge/br_netlink.c | 12 ++-- > > 1 file

[PATCH] net: bridge: add missing NULL checks

2018-04-08 Thread Laszlo Toth
br_port_get_rtnl() can return NULL Signed-off-by: Laszlo Toth --- net/bridge/br_netlink.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 015f465c..cbec11f 100644 --- a/net/bridge/br_netlink.c +++ b/net

Re: [PATCH] net: remove VLA usage

2018-03-09 Thread Laszlo Toth
On Wed, Mar 07, 2018 at 08:26:14PM -0500, David Miller wrote: > From: Laszlo Toth > Date: Thu, 8 Mar 2018 01:19:53 +0100 > > > Separated snmp_seq_show_tcp_udp() to tcp and udp variants, > > so the usage of max_t() for the array size can be emitted. > > > > Sig

[PATCH] net: remove VLA usage

2018-03-07 Thread Laszlo Toth
Separated snmp_seq_show_tcp_udp() to tcp and udp variants, so the usage of max_t() for the array size can be emitted. Signed-off-by: Laszlo Toth --- net/ipv4/proc.c | 24 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c

[PATCH v2] sctp: full support for ipv6 ip_nonlocal_bind & IP_FREEBIND

2017-10-23 Thread Laszlo Toth
d address) ./v6test fe80::10 tcp bind success, errno: 0 (Success) after (w/ both options): ./v6test fe80::10 sctp bind success, errno: 0 (Success) Signed-off-by: Laszlo Toth --- changed in v2: - fixed indentation net/sctp/ipv6.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) d