From: Dan Carpenter Date: Tue, 14 May 2013 21:20:02 +0000 (+0000) Subject: ipg: fix an unsigned widening cast of '~' truncation issue X-Git-Tag: v3.10-rc3~18^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d709d91b85b71568b41b323d2a2c761f18e5213;p=pandora-kernel.git ipg: fix an unsigned widening cast of '~' truncation issue The bug here is this code from ipg_nic_hard_start_xmit(): txfd->tfc &= cpu_to_le64(~IPG_TFC_TFDDONE); IPG_TFC_TFDDONE is 0x0000000080000000 so it's an unsigned int. The negated value is 0x7fffffff but 0xffffffff7fffffff was intended. The other values in this file don't need to be changed but I did it for consistency. Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed