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.
https://patchwork.kernel.org/project/bluetooth/patch/[email protected]/
On my MSI laptop, on coldboot I have no bt errors but when I restart I
alway get qeveral (firmware download error, ...). Without your proposed
patch, I get a systematic RIP when rebooting, and after the laptop does
not properly shutdown.
Your patch applies with offsets.
-- eric