mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
net: libwx: Fix the size in RSS hash key population
While trying to fill a random RSS key, the size of the pointer
is being used rather than the actual size of the RSS key.
Fix by passing an appropriate value of the RSS key.
This issue was reported by static coverity analyser.
Fixes: eb4898fde1
("net: libwx: add wangxun vf common api")
Signed-off-by: Chandra Mohan Sundar <chandramohan.explore@gmail.com>
Link: https://patch.msgid.link/20250814163014.613004-1-chandramohan.explore@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
79116acb75
commit
12da2b92ad
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ void wx_setup_vfmrqc_vf(struct wx *wx)
|
|||
u8 i, j;
|
||||
|
||||
/* Fill out hash function seeds */
|
||||
netdev_rss_key_fill(wx->rss_key, sizeof(wx->rss_key));
|
||||
netdev_rss_key_fill(wx->rss_key, WX_RSS_KEY_SIZE);
|
||||
for (i = 0; i < WX_RSS_KEY_SIZE / 4; i++)
|
||||
wr32(wx, WX_VXRSSRK(i), wx->rss_key[i]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue