summaryrefslogtreecommitdiffstats
path: root/drivers/hv/hv.c
diff options
context:
space:
mode:
authorDexuan Cui2019-04-13 01:34:45 +0200
committerGreg Kroah-Hartman2019-05-10 17:54:04 +0200
commiteb7b8d1afb92e646f440f7f930d245970d1062b6 (patch)
treea5ddd693d66aa425d781d54b5ee4c689131b1a83 /drivers/hv/hv.c
parentscsi: libsas: fix a race condition when smp task timeout (diff)
downloadkernel-qcow2-linux-eb7b8d1afb92e646f440f7f930d245970d1062b6.tar.gz
kernel-qcow2-linux-eb7b8d1afb92e646f440f7f930d245970d1062b6.tar.xz
kernel-qcow2-linux-eb7b8d1afb92e646f440f7f930d245970d1062b6.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/hv.c')
-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 748a1c4172a6..8e923e70e594 100644
--- a/drivers/hv/hv.c
+++ b/drivers/hv/hv.c
@@ -402,7 +402,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(VMBUS_MESSAGE_SINT, shared_sint.as_uint64);