]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/5.0.15/drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch
Linux 5.0.15
[thirdparty/kernel/stable-queue.git] / releases / 5.0.15 / drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch
1 From a0033bd1eae4650b69be07c17cb87393da584563 Mon Sep 17 00:00:00 2001
2 From: Dexuan Cui <decui@microsoft.com>
3 Date: Fri, 12 Apr 2019 23:34:45 +0000
4 Subject: Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
5
6 From: Dexuan Cui <decui@microsoft.com>
7
8 commit a0033bd1eae4650b69be07c17cb87393da584563 upstream.
9
10 With CONFIG_DEBUG_PREEMPT=y, the put_cpu_ptr() triggers an underflow
11 warning in preempt_count_sub().
12
13 Fixes: 37cdd991fac8 ("vmbus: put related per-cpu variable together")
14 Cc: stable@vger.kernel.org
15 Cc: Stephen Hemminger <sthemmin@microsoft.com>
16 Signed-off-by: Dexuan Cui <decui@microsoft.com>
17 Reviewed-by: Michael Kelley <mikelley@microsoft.com>
18 Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21 ---
22 drivers/hv/hv.c | 1 -
23 1 file changed, 1 deletion(-)
24
25 --- a/drivers/hv/hv.c
26 +++ b/drivers/hv/hv.c
27 @@ -408,7 +408,6 @@ int hv_synic_cleanup(unsigned int cpu)
28
29 clockevents_unbind_device(hv_cpu->clk_evt, cpu);
30 hv_ce_shutdown(hv_cpu->clk_evt);
31 - put_cpu_ptr(hv_cpu);
32 }
33
34 hv_get_synint_state(VMBUS_MESSAGE_SINT, shared_sint.as_uint64);