diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-01-07 16:11:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-07 13:46:20 -0800 |
commit | 0d6e5bfc9c5bc852d240cb35b0d850cdb660c4c9 (patch) | |
tree | 4ba511f9ce438ef6c649c459a4c8a3cf80440b19 /scripts/bpf_helpers_doc.py | |
parent | cbefe2c95770a8b04bbe26a684f546c61d2ee8e6 (diff) | |
download | linux-0d6e5bfc9c5bc852d240cb35b0d850cdb660c4c9.tar.gz linux-0d6e5bfc9c5bc852d240cb35b0d850cdb660c4c9.tar.bz2 linux-0d6e5bfc9c5bc852d240cb35b0d850cdb660c4c9.zip |
enetc: Fix an off by one in enetc_setup_tc_txtime()
The priv->tx_ring[] has 16 elements but only priv->num_tx_rings are
set up, the rest are NULL. This ">" comparison should be ">=" to avoid
a potential crash.
Fixes: 0d08c9ec7d6e ("enetc: add support time specific departure base on the qos etf")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions