History

Drivers: hv: vmbus: Release cpu lock in error case

In case of invalid sub channel, release cpu lock before returning.

Saurabh Sengar committed 4 years ago

Commit 656c5ba1 parent f5f93d71 file · +1 −0Browse files

Unified · Split

drivers/hv/channel_mgmt.c+1−0
@@ -639,6 +639,7 @@ static void vmbus_process_offer(struct vmbus_channel *newchannel) · 638 unmodified lines
639 */639 */
640 if (newchannel->offermsg.offer.sub_channel_index == 0) {640 if (newchannel->offermsg.offer.sub_channel_index == 0) {
641 mutex_unlock(&vmbus_connection.channel_mutex);641 mutex_unlock(&vmbus_connection.channel_mutex);
642 cpus_read_unlock();
642 /*643 /*
643 * Don't call free_channel(), because newchannel->kobj644 * Don't call free_channel(), because newchannel->kobj
644 * is not initialized yet.645 * is not initialized yet.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t