mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-29 07:04:19 +08:00
csr_bcsp: Fix missing errno attribution
do_command() is supposed to set errno if returning -1.
This commit is contained in:
parent
7232da34fa
commit
e40bc80bf5
@ -219,6 +219,7 @@ static int do_command(uint16_t command, uint16_t seqnum, uint16_t varid, uint8_t
|
||||
|
||||
if (timeout++ > 5000) {
|
||||
fprintf(stderr, "Operation timed out\n");
|
||||
errno = ETIMEDOUT;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user