diff options
author | Jaco Coetzee <jaco.coetzee@corigine.com> | 2022-11-17 18:37:44 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-19 06:41:21 +0300 |
commit | 0873016d46f6dfafd1bdf4d9b935b3331b226f7c (patch) | |
tree | 28f1e2719d49fc612f66bfdd037d7e3bef4681ea /tools/perf/scripts/python/flamegraph.py | |
parent | 4abd9600b9d15d3d92a9ac25cf200422a4c415ee (diff) | |
download | linux-0873016d46f6dfafd1bdf4d9b935b3331b226f7c.tar.xz |
nfp: add port from netdev validation for EEPROM access
Setting of the port flag `NFP_PORT_CHANGED`, introduced
to ensure the correct reading of EEPROM data, causes a
fatal kernel NULL pointer dereference in cases where
the target netdev type cannot be determined.
Add validation of port struct pointer before attempting
to set the `NFP_PORT_CHANGED` flag. Return that operation
is not supported if the netdev type cannot be determined.
Fixes: 4ae97cae07e1 ("nfp: ethtool: fix the display error of `ethtool -m DEVNAME`")
Signed-off-by: Jaco Coetzee <jaco.coetzee@corigine.com>
Reviewed-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions