From: Dan Carpenter Date: Tue, 27 Sep 2011 06:20:50 +0000 (+0300) Subject: TTY: snyclinkmp: forever loop in tx_load_dma_buffer() X-Git-Tag: v3.2-rc1~170^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53d785ccd918d571c227d459477793872676fc02;p=pandora-kernel.git TTY: snyclinkmp: forever loop in tx_load_dma_buffer() My main concern here was the line that said: copy_count = min_t(unsigned short,count,SCABUFSIZE); "count" is an unsigned int here so the cast to unsigned short truncates the upper bits. So if count is 0x10000 then copy_count is 0 and the loop never exits. "count" comes from skb->len in hdlcdev_xmit(). The other min_t() changes are just cleanups. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed