Skip to content

Commit 656c5ba

Browse files
Saurabh Sengarliuw
authored andcommitted
Drivers: hv: vmbus: Release cpu lock in error case
In case of invalid sub channel, release cpu lock before returning. Fixes: a949e86 ("Drivers: hv: vmbus: Resolve race between init_vp_index() and CPU hotplug") Signed-off-by: Saurabh Sengar <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
1 parent f5f93d7 commit 656c5ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hv/channel_mgmt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ static void vmbus_process_offer(struct vmbus_channel *newchannel)
639639
*/
640640
if (newchannel->offermsg.offer.sub_channel_index == 0) {
641641
mutex_unlock(&vmbus_connection.channel_mutex);
642+
cpus_read_unlock();
642643
/*
643644
* Don't call free_channel(), because newchannel->kobj
644645
* is not initialized yet.

0 commit comments

Comments
 (0)