I submitted a different patch - https://marc.info/?l=linux-bluetooth&m=154228281730667&w=2 On Thu, Nov 15, 2018 at 12:20 PM Gal Ben Haim <gbenhaim@xxxxxxxxxx> wrote: > > I can try to create another patch for it > > On Thu, Nov 15, 2018 at 12:18 PM Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote: > > > > Hi Gal, > > > > > io_send can use poll and check for POLLOUT and POLLRDHUP before > > > writing to the pipe > > > > that should be done anyway since code that writes to a pipe descriptor (or socket for that matter) without checking that it is still valid is broken code. > > > > Regards > > > > Marcel > >