Re: [PATCH ethtool] netlink: fix allocation failure handling in dump_features()

2020-10-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to ethtool/ethtool.git (refs/heads/master): On Wed, 14 Oct 2020 18:49:52 +0200 (CEST) you wrote: > On allocation failure, dump_features() would set ret to -ENOMEM but then > return 0 anyway. As there is nothing to free in this case anyway, the > easiest fix is to sim

[PATCH ethtool] netlink: fix allocation failure handling in dump_features()

2020-10-14 Thread Michal Kubecek
On allocation failure, dump_features() would set ret to -ENOMEM but then return 0 anyway. As there is nothing to free in this case anyway, the easiest fix is to simply return -ENOMEM rather than jumping to out_free label - which can be dropped as well as this was its only use. Fixes: f2c17e107900