Skip to content
Commit 46cdedf2 authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller
Browse files

ethtool: pse-pd: fix null-deref on genl_info in dump



ethnl_default_dump_one() passes NULL as info.

It's correct not to set extack during dump, as we should just
silently skip interfaces which can't provide the information.

Reported-by: default avatar <syzbot+81c4b4bbba6eea2cfcae@syzkaller.appspotmail.com>
Fixes: 18ff0bcd ("ethtool: add interface to interact with Ethernet Power Equipment")
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Reviewed-by: default avatarOleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e840d8f4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment