diff options
| author | Gal Pressman <gal@nvidia.com> | 2025-12-25 15:27:15 +0200 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-01-04 10:38:50 -0800 |
| commit | 7d36a4a8bf62dc508bc6bb4b59727aec25064ca5 (patch) | |
| tree | 6ce14bb5d47a3a23a7ad80c49bcba58a5bdd3a4e /kernel/livepatch/git@git.tavy.me:linux.git | |
| parent | 6c75dc9de40ff91ec2b621b78f6cd9031762067c (diff) | |
net/mlx5e: Fix NULL pointer dereference in ioctl module EEPROM query
The mlx5_query_mcia() function unconditionally dereferences the status
pointer to store the MCIA register status value.
However, mlx5e_get_module_id() passes NULL since it doesn't need the
status value.
Add a NULL check before dereferencing the status pointer to prevent a
NULL pointer dereference.
Fixes: 2e4c44b12f4d ("net/mlx5: Refactor EEPROM query error handling to return status separately")
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20251225132717.358820-4-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'kernel/livepatch/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
