Skip to content

Commit 59e00e8

Browse files
harshimogalapallikuba-moo
authored andcommitted
net: mvneta: fix locking in mvneta_cpu_online()
When port is stopped, unlock before returning Fixes: 413f027 ("net: protect NAPI enablement with netdev_lock()") Signed-off-by: Harshit Mogalapalli <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 61dc1fd commit 59e00e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4432,6 +4432,7 @@ static int mvneta_cpu_online(unsigned int cpu, struct hlist_node *node)
44324432
*/
44334433
if (pp->is_stopped) {
44344434
spin_unlock(&pp->lock);
4435+
netdev_unlock(port->napi.dev);
44354436
return 0;
44364437
}
44374438
netif_tx_stop_all_queues(pp->dev);

0 commit comments

Comments
 (0)