aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/bnx2_fw2.h
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2007-11-08 23:23:21 +0100
committerJeff Garzik <jeff@garzik.org>2007-11-10 04:25:16 -0500
commita6baf3af89a266a3d745117de570788b956396e7 (patch)
tree212182ba7e535d0e566b3579b536ffa7b6cb7b74 /drivers/net/bnx2_fw2.h
parent50d84c2dc00e48ff9ba018ed0dd23276cf79e566 (diff)
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 <romieu@fr.zoreil.com> Cc: Edward Hsu <edward_hsu@realtek.com.tw>
Diffstat (limited to 'drivers/net/bnx2_fw2.h')
0 files changed, 0 insertions, 0 deletions