diff options
author | Archie Pusaka <[email protected]> | 2023-04-20 20:23:36 +0800 |
---|---|---|
committer | Luiz Augusto von Dentz <[email protected]> | 2023-04-23 22:06:55 -0700 |
commit | f419863588217f76eaf754e1dfce21ea7fcb026d (patch) | |
tree | e03c79cf12a69f5b31edbd8eddf5688d6141b2d2 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 7948fe1c92d92313eea5453f83deb7f0141355e8 (diff) |
Bluetooth: Cancel sync command before suspend and power off
Some of the sync commands might take a long time to complete, e.g.
LE Create Connection when the peer device isn't responding might take
20 seconds before it times out. If suspend command is issued during
this time, it will need to wait for completion since both commands are
using the same sync lock.
This patch cancel any running sync commands before attempting to
suspend or adapter power off.
Signed-off-by: Archie Pusaka <[email protected]>
Reviewed-by: Ying Hsu <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions