]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/bluetooth/bnep/core.c
[Bluetooth] Signal user-space for HIDP and BNEP socket errors
[linux-2.6-omap-h63xx.git] / net / bluetooth / bnep / core.c
index f85d94643aafd29939175f51a98cb9ff7b9d5182..24e91eb7f649f17d7136b59825c08503b62978eb 100644 (file)
@@ -507,6 +507,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);