]> Git Repo - linux.git/commit
Bluetooth: hci_sync: Fix not checking error on hci_cmd_sync_cancel_sync
authorLuiz Augusto von Dentz <[email protected]>
Tue, 26 Mar 2024 16:43:17 +0000 (12:43 -0400)
committerLuiz Augusto von Dentz <[email protected]>
Fri, 29 Mar 2024 13:48:37 +0000 (09:48 -0400)
commit6946b9c99bde45f3ba74e00a7af9a3458cc24bea
tree23c9bfbf58276ce2ea304dd265752a757c44a554
parent77f45cca8bc55d00520a192f5a7715133591c83e
Bluetooth: hci_sync: Fix not checking error on hci_cmd_sync_cancel_sync

hci_cmd_sync_cancel_sync shall check the error passed to it since it
will be propagated using req_result which is __u32 it needs to be
properly set to a positive value if it was passed as negative othertise
IS_ERR will not trigger as -(errno) would be converted to a positive
value.

Fixes: 63298d6e752f ("Bluetooth: hci_core: Cancel request on command timeout")
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Reported-and-tested-by: Thorsten Leemhuis <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
net/bluetooth/hci_core.c
net/bluetooth/hci_sync.c
This page took 0.052033 seconds and 4 git commands to generate.