parisc: hp_sdc_mlc.c - check return value of down_trylock()
authorHelge Deller <deller@gmx.de>
Sun, 2 Aug 2009 13:13:29 +0000 (15:13 +0200)
committerHelge Deller <deller@gmx.de>
Sun, 2 Aug 2009 13:13:29 +0000 (15:13 +0200)
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/input/serio/hp_sdc_mlc.c

index b587e2d..820e516 100644 (file)
@@ -296,7 +296,7 @@ static void hp_sdc_mlc_out(hil_mlc *mlc)
        priv->tseq[3] = 0;
        if (mlc->opacket & HIL_CTRL_APE) {
                priv->tseq[3] |= HP_SDC_LPC_APE_IPF;
-               down_trylock(&mlc->csem);
+               BUG_ON(down_trylock(&mlc->csem));
        }
  enqueue:
        hp_sdc_enqueue_transaction(&priv->trans);