virtio_net: Fix missed rtnl_unlock

The rtnl_lock would stay locked if allocating promisc_allmulti failed.
Also changed the allocation to GFP_KERNEL.

Fixes: ff7c7d9f5261 ("virtio_net: Remove command data from control_buf")
Reported-by: Eric Dumazet <>
Signed-off-by: Daniel Jurgens <>
Reviewed-by: Brett Creeley <>
Reviewed-by: Eric Dumazet <>
Acked-by: Michael S. Tsirkin <>
Acked-by: Jason Wang <>
Signed-off-by: Jakub Kicinski <>
1 file changed