mlx-bootctl: Fix exclusion issues around arm_smccc_smc

Bug #1933642 reported by Shravan Kumar Ramani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-bluefield (Ubuntu)
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.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers