diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-17 12:30:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-17 12:30:10 -0400 |
commit | b762799dd8b03ec0aafc54ba165564902eac3e18 (patch) | |
tree | a43736bbba5414a42cd61a15477c6efbb6b48e0c | |
parent | 90d33f3ec519db19d785216299a4ee85ef58ec97 (diff) |
Revert "Drivers: hv: vmbus: Fix a bug in channel rescind code"
This reverts commit 90d33f3ec519db19d785216299a4ee85ef58ec97 as it's not
the correct fix for this issue, and it causes a build warning to be
added to the kernel tree.
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/hv/channel_mgmt.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index eebf56634ed5..bbff5f200bef 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c | |||
@@ -203,8 +203,7 @@ static void vmbus_process_rescind_offer(struct work_struct *work) | |||
203 | struct vmbus_channel *primary_channel; | 203 | struct vmbus_channel *primary_channel; |
204 | struct vmbus_channel_relid_released msg; | 204 | struct vmbus_channel_relid_released msg; |
205 | 205 | ||
206 | if (channel->device_obj) | 206 | vmbus_device_unregister(channel->device_obj); |
207 | vmbus_device_unregister(channel->device_obj); | ||
208 | memset(&msg, 0, sizeof(struct vmbus_channel_relid_released)); | 207 | memset(&msg, 0, sizeof(struct vmbus_channel_relid_released)); |
209 | msg.child_relid = channel->offermsg.child_relid; | 208 | msg.child_relid = channel->offermsg.child_relid; |
210 | msg.header.msgtype = CHANNELMSG_RELID_RELEASED; | 209 | msg.header.msgtype = CHANNELMSG_RELID_RELEASED; |
@@ -214,6 +213,11 @@ static void vmbus_process_rescind_offer(struct work_struct *work) | |||
214 | spin_lock_irqsave(&vmbus_connection.channel_lock, flags); | 213 | spin_lock_irqsave(&vmbus_connection.channel_lock, flags); |
215 | list_del(&channel->listentry); | 214 | list_del(&channel->listentry); |
216 | spin_unlock_irqrestore(&vmbus_connection.channel_lock, flags); | 215 | spin_unlock_irqrestore(&vmbus_connection.channel_lock, flags); |
216 | } else { | ||
217 | primary_channel = channel->primary_channel; | ||
218 | spin_lock_irqsave(&primary_channel->sc_lock, flags); | ||
219 | list_del(&channel->listentry); | ||
220 | spin_unlock_irqrestore(&primary_channel->sc_lock, flags); | ||
217 | } | 221 | } |
218 | free_channel(channel); | 222 | free_channel(channel); |
219 | } | 223 | } |