]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: eeprom: fix null-deref on genl_info in dump
authorXin Long <lucien.xin@gmail.com>
Fri, 21 Oct 2022 14:22:47 +0000 (10:22 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 25 Oct 2022 02:08:07 +0000 (19:08 -0700)
commit330386d836c0735b1fab3f38df5f7423de799f68
treeb38d018645146838a11a8a4f07356898225e3916
parent3f171d09691f07c02519d41dab39975777893d46
ethtool: eeprom: fix null-deref on genl_info in dump

The similar fix as commit e36afe12ad79 ("ethtool: pse-pd: fix null-deref on
genl_info in dump") is also needed for ethtool eeprom.

Fixes: 21902f1a21a4 ("ethtool: Allow network drivers to dump arbitrary EEPROM data")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Link: https://lore.kernel.org/r/5575919a2efc74cd9ad64021880afc3805c54166.1666362167.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/eeprom.c