patch "Drivers: hv: vmbus: Fix the offer_in_progress in" added to char-misc-testing
Subsystems (2)
This is a note to let you know that I've just added the patch titled
Drivers: hv: vmbus: Fix the offer_in_progress in
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-testing branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will be merged to the char-misc-next branch sometime soon, after it passes testing, and the merge window is open.
If you have any questions about this process, please let me know.
Quoted 1 line
From
50229128727f7e11840ca1b2b501f880818d56b6Mon Sep 17 00:00:00 2001
From: Dexuan Cui <[email protected]>
Date: Tue, 5 Jun 2018 13:37:52 -0700
Subject: Drivers: hv: vmbus: Fix the offer_in_progress in
vmbus_process_offer()
I didn't really hit a real bug, but just happened to spot the bug:
we have decreased the counter at the beginning of vmbus_process_offer(), so we mustn't decrease it again.
--- drivers/hv/channel_mgmt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/hv/channel_mgmt.c +1 -3
@@ -527,10 +527,8 @@ static void vmbus_process_offer(struct vmbus_channel *newchannel)struct hv_device *dev = newchannel->primary_channel->device_obj; -if (vmbus_add_channel_kobj (dev, newchannel)) { -atomic_dec (&vmbus_connection.offer_in_progress); +if (vmbus_add_channel_kobj (dev, newchannel)) goto err_free_chan; - }if (channel->sc_creation_callback !=NULL ) channel->sc_creation_callback (newchannel);
Signature · 1 line
2.18.0