Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eth: fbnic: Avoid garbage value in fbnic_mac_get_sensor_asic()
'fw_cmpl' is uninitialized which makes 'sensor' and '*val' to be stored garbage value. Remove the whole body of fbnic_mac_get_sensor_asic() and return -EOPNOTSUPP to fix this problem. Fixes: d85ebad ("eth: fbnic: Add hardware monitoring support via HWMON interface") Signed-off-by: Su Hui <suhui@nfschina.com> Suggested-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Signed-off-by: NipaLocal <nipa@local>
- Loading branch information