aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/nvidia/forcedeth.c
diff options
context:
space:
mode:
authordingtianhong <dingtianhong@huawei.com>2013-12-04 18:59:31 +0800
committerDavid S. Miller <davem@davemloft.net>2013-12-05 20:58:14 -0500
commit89015c18ff34a39e4679ddd9b058e74d7dde28e7 (patch)
treec4b6ab6fa12d8158a492a61695cc584cb0080adf /drivers/net/ethernet/nvidia/forcedeth.c
parentbnx2x: avoid null pointer dereference when enabling SR-IOV (diff)
downloadlinux-dev-89015c18ff34a39e4679ddd9b058e74d7dde28e7.tar.xz
linux-dev-89015c18ff34a39e4679ddd9b058e74d7dde28e7.zip
bonding: add arp_ip_target checks when install the module
When I install the bonding with the wrong arp_ip_target, just like arp_ip_target=500.500.500.500, the arp_ip_target was transfored to 245.245.245.244 and stored in the ip target success, it is uncorrect, so I add checks to avoid adding wrong address. The in4_pton() will set wrong ip address to 0.0.0.0 and return 0, also use the micro IS_IP_TARGET_UNUSABLE_ADDRESS to simplify the code. Signed-off-by: Ding Tianhong <dingtianhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/nvidia/forcedeth.c')
0 files changed, 0 insertions, 0 deletions