]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: Fix possible access beyond end of array
authorIoana Ciocoi Radulescu <ruxandra.radulescu@nxp.com>
Wed, 20 Mar 2019 14:11:04 +0000 (14:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2019 23:28:13 +0000 (16:28 -0700)
commit243c16edecf9adef03823e22fcc62dd921da8d39
tree31c141610753eefadcc98592f48d36051353884a
parentdca0d14c2438f62c04398c0f5223c70a48d38c2a
dpaa2-eth: Fix possible access beyond end of array

Make sure we don't try to enqueue XDP_REDIRECT frames to an
inexistent FQ.

While it is guaranteed not to have more than one queue per core,
having fewer queues than CPUs on an interface is a valid
configuration.

Fixes: 36a35b7b5c8f ("dpaa2-eth: add XDP_REDIRECT support")
Reported-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c