From: Francois Romieu Date: Thu, 8 Nov 2007 22:23:21 +0000 (+0100) Subject: r8169: prevent bit sign expansion error in mdio_write X-Git-Tag: v2.6.24-rc3~163^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6baf3af89a266a3d745117de570788b956396e7;p=pandora-kernel.git r8169: prevent bit sign expansion error in mdio_write Oops. The current code does not like being given an u16 with the highest bit set as an argument to mdio_write. Let's enforce a correct range of values for both the register address and value (resp. 5 and 16 bits). The callers are currently left as-is. Signed-off-by: Francois Romieu Cc: Edward Hsu --- Reading git-diff-tree failed