[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Yl8v6OcArfqmVYj/@lunn.ch>
Date: Tue, 19 Apr 2022 23:55:52 +0200
From: Andrew Lunn <andrew@...n.ch>
To: cgel.zte@...il.com
Cc: nbd@....name, john@...ozen.org, sean.wang@...iatek.com,
Mark-MC.Lee@...iatek.com, davem@...emloft.net, kuba@...nel.org,
pabeni@...hat.com, matthias.bgg@...il.com, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org,
Lv Ruyi <lv.ruyi@....com.cn>, Zeal Robot <zealci@....com.cn>
Subject: Re: [PATCH] net: ethernet: mtk_eth_soc: fix error check return value
of debugfs_create_dir()
On Tue, Apr 19, 2022 at 01:58:32AM +0000, cgel.zte@...il.com wrote:
> From: Lv Ruyi <lv.ruyi@....com.cn>
>
> If an error occurs, debugfs_create_file() will return ERR_PTR(-ERROR),
> so use IS_ERR() to check it.
Please take a look at for example:
https://lkml.iu.edu/hypermail/linux/kernel/1901.2/06005.html
https://lkml.iu.edu/hypermail/linux/kernel/1901.2/06006.html
https://lkml.iu.edu/hypermail/linux/kernel/1901.2/05993.html
This is the author of debugfs remove exactly the sort of code you are
adding.
Please teach the Zeal Bot that such code is wrong, and you should be
submitting patches to actually remove testing the return values for
anything which starts with debugfs_
Andrew
Powered by blists - more mailing lists