From: Olivier Sobrie Date: Mon, 14 Jul 2014 10:08:50 +0000 (+0200) Subject: hso: fix deadlock when receiving bursts of data X-Git-Tag: omap-for-v3.17/fixes-against-rc2~289^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f9818af4eaef1150282e18355aaea425474a411;p=pandora-kernel.git hso: fix deadlock when receiving bursts of data When the module sends bursts of data, sometimes a deadlock happens in the hso driver when the tty buffer doesn't get the chance to be flushed quickly enough. Remove the endless while loop in function put_rxbuf_data() which is called by the urb completion handler. If there isn't enough room in the tty buffer, discards all the data received in the URB. Cc: David Miller Cc: David Laight Cc: One Thousand Gnomes Cc: Dan Williams Cc: Jan Dumon Signed-off-by: Olivier Sobrie Acked-by: Alan Cox Signed-off-by: David S. Miller --- Reading git-diff-tree failed