Skip to content
Commit edb938f2 authored by Piyush Malgujar's avatar Piyush Malgujar Committed by Ruiqiang Hao
Browse files

firmware: octeontx2: sfp-info: Update sfp_info_data



commit fab11ccb74b109188b2dca84495c5718c9324a6d from
git@git.assembla.com:cavium/WindRiver.linux.git

This fix is to solve the NULL pointer issue which happens when
trying to unregister the mub_device. Populate the sfp_info_data mdev
member before accessing it in mub_device_unregister().

Fixes: 9317c51441b2 ("sfp-info: Populate sfp_info_data.mdev before using")

Signed-off-by: default avatarPiyush Malgujar <pmalgujar@marvell.com>
Change-Id: I8d1b9a46748480a500311301e7eddeff252dbf79
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/88224


Reviewed-by: default avatarChandrakala Chavva <cchavva@marvell.com>
Tested-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent adfc9bc2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment