]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blob - rt-patches/0355-scsi-fcoe-Fix-get_cpu-put_cpu_light-imbalance-in-fco.patch
Fix memguard and related syscalls
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0355-scsi-fcoe-Fix-get_cpu-put_cpu_light-imbalance-in-fco.patch
1 From e636c3302ea1e418fffe1508f054a14560fefb40 Mon Sep 17 00:00:00 2001
2 From: Mike Galbraith <umgwanakikbuti@gmail.com>
3 Date: Thu, 28 Jul 2016 06:04:49 +0200
4 Subject: [PATCH 355/366] scsi/fcoe: Fix get_cpu()/put_cpu_light() imbalance in
5  fcoe_recv_frame()
6
7 During master->rt merge, I stumbled across the buglet below.
8
9 Fix get_cpu()/put_cpu_light() imbalance.
10
11 Cc: stable-rt@vger.kernel.org
12 Signed-off-by: Mike Gabraith <umgwanakikbuti@gmail.com>
13 Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
14 Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
15 ---
16  drivers/scsi/fcoe/fcoe.c | 2 +-
17  1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
20 index f1622a0..cbbbebd 100644
21 --- a/drivers/scsi/fcoe/fcoe.c
22 +++ b/drivers/scsi/fcoe/fcoe.c
23 @@ -1814,7 +1814,7 @@ static void fcoe_recv_frame(struct sk_buff *skb)
24          */
25         hp = (struct fcoe_hdr *) skb_network_header(skb);
26  
27 -       stats = per_cpu_ptr(lport->stats, get_cpu());
28 +       stats = per_cpu_ptr(lport->stats, get_cpu_light());
29         if (unlikely(FC_FCOE_DECAPS_VER(hp) != FC_FCOE_VER)) {
30                 if (stats->ErrorFrames < 5)
31                         printk(KERN_WARNING "fcoe: FCoE version "
32 -- 
33 1.9.1
34