Skip to content

Commit dc86404

Browse files
Chandra Mohan SundarNipaLocal
authored andcommitted
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: eb4898f ("net: libwx: add wangxun vf common api") Signed-off-by: Chandra Mohan Sundar <chandramohan.explore@gmail.com> Signed-off-by: NipaLocal <nipa@local>
1 parent a1295de commit dc86404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/wangxun/libwx/wx_vf_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void wx_setup_vfmrqc_vf(struct wx *wx)
192192
u8 i, j;
193193

194194
/* Fill out hash function seeds */
195-
netdev_rss_key_fill(wx->rss_key, sizeof(wx->rss_key));
195+
netdev_rss_key_fill(wx->rss_key, WX_RSS_KEY_SIZE);
196196
for (i = 0; i < WX_RSS_KEY_SIZE / 4; i++)
197197
wr32(wx, WX_VXRSSRK(i), wx->rss_key[i]);
198198

0 commit comments

Comments
 (0)