summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/freescale
diff options
context:
space:
mode:
authorNick Child <nnac123@linux.ibm.com>2023-03-21 10:07:25 -0500
committerJakub Kicinski <kuba@kernel.org>2023-03-22 22:38:25 -0700
commit1cc6571f562774f1d928dc8b3cff50829b86e970 (patch)
treeda3bb41a3d09eb114f8844fc55744a261a16bd0b /drivers/net/ethernet/freescale
parent5dd0dfd55baec0742ba8f5625a0dd064aca7db16 (diff)
netdev: Enforce index cap in netdev_get_tx_queue
When requesting a TX queue at a given index, warn on out-of-bounds referencing if the index is greater than the allocated number of queues. Specifically, since this function is used heavily in the networking stack use DEBUG_NET_WARN_ON_ONCE to avoid executing a new branch on every packet. Signed-off-by: Nick Child <nnac123@linux.ibm.com> Link: https://lore.kernel.org/r/20230321150725.127229-2-nnac123@linux.ibm.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/freescale')
0 files changed, 0 insertions, 0 deletions