]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
authorDexuan Cui <decui@microsoft.com>
Fri, 12 Apr 2019 23:34:45 +0000 (23:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 16:36:03 +0000 (18:36 +0200)
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>
drivers/hv/hv.c

index 632d25674e7feef8e8db91820ab22a63d6c80de9..45653029ee18fe8050932c94bb7cff29d75a61c3 100644 (file)
@@ -408,7 +408,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);