diff options
author | Dexuan Cui <decui@microsoft.com> | 2015-04-23 07:31:30 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-24 22:18:23 +0300 |
commit | 813c5b7958a288c4333ef1eb2fa4b486cdcdda9a (patch) | |
tree | 82dab62921390f53d7592baa19f2e71a58c0afa2 /drivers/scsi/scsi_lib.c | |
parent | 096c605feb3d85b309e95db2afc01584b967cc23 (diff) | |
download | linux-813c5b7958a288c4333ef1eb2fa4b486cdcdda9a.tar.xz |
hv: vmbus_free_channels(): remove the redundant free_channel()
free_channel() has been invoked in
vmbus_remove() -> hv_process_channel_removal(), or vmbus_remove() ->
... -> vmbus_close_internal() -> hv_process_channel_removal().
We also change to use list_for_each_entry_safe(), because the entry
is removed in hv_process_channel_removal().
This patch fixes a bug in the vmbus unload path.
Thank Dan Carpenter for finding the issue!
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
0 files changed, 0 insertions, 0 deletions