[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190224.123230.261167641058555597.davem@davemloft.net>
Date: Sun, 24 Feb 2019 12:32:30 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: wen.yang99@....com.cn
Cc: linus.walleij@...aro.org, andrew@...n.ch, vivien.didelot@...il.com,
f.fainelli@...il.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, alexandre.belloni@...tlin.com,
UNGLinuxDriver@...rochip.com, nbd@....name,
lorenzo.bianconi83@...il.com, kvalo@...eaurora.org,
matthias.bgg@...il.com, linux-wireless@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, anirudh@...inx.com,
John.Linn@...inx.com, michal.simek@...inx.com, wang.yi59@....com.cn
Subject: Re: [PATCH 5/5] net: dsa: fix a leaked reference by adding missing
of_node_put
From: Wen Yang <wen.yang99@....com.cn>
Date: Fri, 22 Feb 2019 15:15:42 +0800
> diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c
> index 8c431e0..89823f0 100644
> --- a/net/dsa/dsa2.c
> +++ b/net/dsa/dsa2.c
> @@ -613,7 +613,7 @@ static int dsa_switch_parse_ports_of(struct dsa_switch *ds,
> struct device_node *ports, *port;
> struct dsa_port *dp;
> u32 reg;
> - int err;
> + int err = 0;
Please preserve the reverse christmas tree ordering of variables here.
Thank you.
Powered by blists - more mailing lists