X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fbluetooth%2Fbnep%2Fcore.c;h=021172c0e6660e016877ef6ab3a92211ffce94fb;hb=407d819cf0fd54c6fc1138a509225696aecafd15;hp=1d98a1b80da73aa30d04113b636944cb3494f8fb;hpb=030352a9c7715780b2c01033ae9afe56249bb7cc;p=pandora-kernel.git diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index 1d98a1b80da7..021172c0e666 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c @@ -503,6 +503,11 @@ static int bnep_session(void *arg) /* Delete network device */ unregister_netdev(dev); + /* Wakeup user-space polling for socket errors */ + s->sock->sk->sk_err = EUNATCH; + + wake_up_interruptible(s->sock->sk->sk_sleep); + /* Release the socket */ fput(s->sock->file);