summaryrefslogtreecommitdiffstats
path: root/drivers/hv
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2019-04-12 23:34:45 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-10 17:53:08 +0200
commit7a01e8154b48e61fe8a232df5325e32cbb015ecf (patch)
treecde693a2ee29c53a987480225cc1cb71fbfc935d /drivers/hv
parent3739f98aea7113a21d11b1a604525049e422e29e (diff)
downloadlinux-stable-7a01e8154b48e61fe8a232df5325e32cbb015ecf.tar.gz
linux-stable-7a01e8154b48e61fe8a232df5325e32cbb015ecf.tar.bz2
linux-stable-7a01e8154b48e61fe8a232df5325e32cbb015ecf.zip
Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
commit a0033bd1eae4650b69be07c17cb87393da584563 upstream. With CONFIG_DEBUG_PREEMPT=y, the put_cpu_ptr() triggers an underflow warning in preempt_count_sub(). Fixes: 37cdd991fac8 ("vmbus: put related per-cpu variable together") Cc: stable@vger.kernel.org Cc: Stephen Hemminger <sthemmin@microsoft.com> Signed-off-by: Dexuan Cui <decui@microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv')
-rw-r--r--drivers/hv/hv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
index d8101cd28dfa..fe041f22521d 100644
--- a/drivers/hv/hv.c
+++ b/drivers/hv/hv.c
@@ -356,7 +356,6 @@ int hv_synic_cleanup(unsigned int cpu)
clockevents_unbind_device(hv_cpu->clk_evt, cpu);
hv_ce_shutdown(hv_cpu->clk_evt);
- put_cpu_ptr(hv_cpu);
}
hv_get_synint_state(HV_X64_MSR_SINT0 + VMBUS_MESSAGE_SINT,