From: Dan Carpenter Date: Tue, 28 Feb 2012 06:57:59 +0000 (+0300) Subject: Bluetooth: change min_t() cast in hci_reassembly() X-Git-Tag: v3.4-rc1~177^2~112^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89bb46d02046b59c1de3d2e92680f3a1062750d0;p=pandora-kernel.git Bluetooth: change min_t() cast in hci_reassembly() "count" is type int so the cast to __u16 truncates the high bits away and triggers a Smatch static checker warning. It looks like a high value of count could cause a forever loop, but I didn't follow it through to see if count is capped somewhere. Signed-off-by: Dan Carpenter Acked-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed