be2net: bug fix in be_change_mtu
authorAjit Khaparde <ajitkhaparde@gmail.com>
Tue, 9 Feb 2010 01:32:43 +0000 (01:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2010 20:27:58 +0000 (12:27 -0800)
commit34a89b8c75abe2873a95524552cc266fdd3b6a85
treefc1af457d8100289e6a5798dcd3902c8a20d89e3
parent3f0d4560aedaa67546eaeb3dc75fcdf68ec21036
be2net: bug fix in be_change_mtu

Current code allows the new mtu to cross the supported value.
This patch fixes the boundary checks.

From: Suresh R <sureshr@serverengines.com>
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c