]> git.baikalelectronics.ru Git - kernel.git/commit
net: NULL the old xps map entries when freeing them
authorAntoine Tenart <atenart@kernel.org>
Thu, 18 Mar 2021 18:37:52 +0000 (19:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 21:56:22 +0000 (14:56 -0700)
commit19169a0f3c255da110f1a114ecae5453366c6d65
treee5de43abc8e7f0798287bdaba551f6eb9af7c41f
parent3e38d4bc9b7be0352dc39bb4140d4d7a96c159a1
net: NULL the old xps map entries when freeing them

In __netif_set_xps_queue, old map entries from the old dev_maps are
freed but their corresponding entry in the old dev_maps aren't NULLed.
Fix this.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c