From: Dean Jenkins Date: Tue, 23 Jun 2015 16:59:39 +0000 (+0100) Subject: Bluetooth: __l2cap_wait_ack() add defensive timeout X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~258^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e432c72c464d2deb6c66d1e2a5f548dc1f0ef4dc;p=pandora-kernel.git Bluetooth: __l2cap_wait_ack() add defensive timeout Add a timeout to prevent the do while loop running in an infinite loop. This ensures that the channel will be instructed to close within 10 seconds so prevents l2cap_sock_shutdown() getting stuck forever. Returns -ENOLINK when the timeout is reached. The channel will be subequently closed and not all data will be ACK'ed. Signed-off-by: Dean Jenkins Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed