mlx-bootctl: Fix exclusion issues around arm_smccc_smc
Bug #1933642 reported by
Shravan Kumar Ramani
This bug report is a duplicate of:
Bug #1931843: Update mlx-bootctl to access new fields in EEPROM MFG.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-bluefield (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
SRU Justification:
[Impact]
Exclusion is being handled around arm_smccc_smc() only in the store functions. It should be implemented in the show functions also as this call might not be thread-safe.
[Fix]
Add mutex_lock/unlock around arm_smccc_smc calls in the show functions.
[Test Case]
Multiple simultaneous accesses to a sysfs entry exposed by the driver are successful.
[Regression Potential]
Can be considered minimum
To post a comment you must log in.