]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
fbfront: Fix no-kbd-event case
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 18 Feb 2008 14:33:35 +0000 (14:33 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 18 Feb 2008 14:33:35 +0000 (14:33 +0000)
out_cons shouldn't even be used.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
linux-2.6.18-xen changeset:   418:d9eaaff9a9bdb37b1aec92e071dc47e038bbd2c5
linux-2.6.18-xen date:        Thu Feb 14 09:25:05 2008 +0000

linux-2.6-xen-sparse/drivers/xen/fbfront/xenkbd.c

index 859226d66ba6f77631b606bc56af9c10b82c75f8..3487ba0acac73a19e8be2e4c5cab49f582545def 100644 (file)
@@ -53,7 +53,7 @@ static irqreturn_t input_handler(int rq, void *dev_id, struct pt_regs *regs)
        __u32 cons, prod;
 
        prod = page->in_prod;
-       if (prod == page->out_cons)
+       if (prod == page->in_cons)
                return IRQ_HANDLED;
        rmb();                  /* ensure we see ring contents up to prod */
        for (cons = page->in_cons; cons != prod; cons++) {