Skip to content
Commit e5cc361e authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

octeontx2-pf: fix a buffer overflow in otx2_set_rxfh_context()



This function is called from ethtool_set_rxfh() and "*rss_context"
comes from the user.  Add some bounds checking to prevent memory
corruption.

Fixes: 81a43620 ("octeontx2-pf: Add RSS multi group support")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarSunil Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e800557
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment