summaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorDan Carpenter2019-06-07 17:31:07 +0200
committerDavid S. Miller2019-06-09 22:37:25 +0200
commit5270041d342de6f1e6a3b6634c1ceaa67d1f87ea (patch)
treee822fa9d52aa7e6251996af9974b0b20f3b106da /drivers/net/phy
parentMerge branch 'bonding-clean-up-and-standarize-logging-printks' (diff)
downloadkernel-qcow2-linux-5270041d342de6f1e6a3b6634c1ceaa67d1f87ea.tar.gz
kernel-qcow2-linux-5270041d342de6f1e6a3b6634c1ceaa67d1f87ea.tar.xz
kernel-qcow2-linux-5270041d342de6f1e6a3b6634c1ceaa67d1f87ea.zip
nexthop: off by one in nexthop_mpath_select()
The nhg->nh_entries[] array is allocated in nexthop_grp_alloc() and it has nhg->num_nh elements so this check should be >= instead of >. Fixes: 430a049190de ("nexthop: Add support for nexthop groups") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy')
0 files changed, 0 insertions, 0 deletions