Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/bnxt: fix xstats names query overrun
[ upstream commit 8dcee14 ] When the xstats_names parameter to rte_eth_xstats_get_names() is non-NULL and the size parameter is less than the required number of entries, the driver must return the required size without modifying (and over-running) the caller's xstats_names array. Update bnxt_dev_xstats_get_names_op() in accordance with this requirement. Fixes: bfb9c22 ("net/bnxt: support xstats get/reset") Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
- Loading branch information
1 parent
9d1da36
commit c59f883
Showing
1 changed file
with
46 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters