diff options
| author | Bartosz Golaszewski <[email protected]> | 2025-04-23 08:55:40 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2025-04-24 10:07:55 +0000 |
| commit | 837b05fea0752ee900abe57253d9f79ca46dd227 (patch) | |
| tree | 66168a6bc2174118164d1fc6611d5a91625d5a85 /lib/crypto/mpi/mpi-pow.c | |
| parent | HID: cp2112: destroy mutex on driver detach (diff) | |
| download | kernel-837b05fea0752ee900abe57253d9f79ca46dd227.tar.gz kernel-837b05fea0752ee900abe57253d9f79ca46dd227.zip | |
HID: cp2112: hold the lock for the entire direction_output() call
We currently take the lock, set direction to output, release it,
reacquire it and set the desired value. That doesn't look correct.
Introduce a helper function that sets the value without taking the lock
and use it where applicable in order to combine the critical sections.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions
