]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: ISO: Fix not handling shutdown condition
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 18 Aug 2022 21:31:42 +0000 (14:31 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 25 Aug 2022 23:26:17 +0000 (16:26 -0700)
commit55ffab92768fbfaf627c3d7386a66e7aa135ac36
tree285df5ec3a75b24b862d151400c3e7c1d1d138ae
parent9cbf49776b0b92b899e8dca44232a21820b6f346
Bluetooth: ISO: Fix not handling shutdown condition

In order to properly handle shutdown syscall the code shall not assume
that the how argument is always SHUT_RDWR resulting in SHUTDOWN_MASK as
that would result in poll to immediately report EPOLLHUP instead of
properly waiting for disconnect_cfm (Disconnect Complete) which is
rather important for the likes of BAP as the CIG may need to be
reprogrammed.

Fixes: e8b1014d0e46 ("Bluetooth: Add BTPROTO_ISO socket type")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/iso.c