sfc: support for devlink port requires MAE access
authorMartin Habets <habetsm.xilinx@gmail.com>
Wed, 28 Jun 2023 12:32:20 +0000 (13:32 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Jun 2023 18:10:27 +0000 (11:10 -0700)
commit915057ae79692d47f9fb3504785855be49abaea4
tree5bf58fa9f005ed4da80e3605a1c08eb7644f0a1e
parent56f66ce1fd41c8eb063b550581d664af1e576b55
sfc: support for devlink port requires MAE access

On systems without MAE permission efx->mae is not initialised,
and trying to lookup an mport results in a NULL pointer
dereference.

Fixes: 25414b2a64ae ("sfc: add devlink port support for ef100")
Signed-off-by: Martin Habets <habetsm.xilinx@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/efx_devlink.c