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)
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.