diff options
author | dingtianhong <dingtianhong@huawei.com> | 2013-12-04 11:59:31 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-06 02:58:14 +0100 |
commit | 89015c18ff34a39e4679ddd9b058e74d7dde28e7 (patch) | |
tree | c4b6ab6fa12d8158a492a61695cc584cb0080adf /drivers/ide/pdc202xx_new.c | |
parent | bnx2x: avoid null pointer dereference when enabling SR-IOV (diff) | |
download | linux-89015c18ff34a39e4679ddd9b058e74d7dde28e7.tar.xz linux-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/ide/pdc202xx_new.c')
0 files changed, 0 insertions, 0 deletions