]> err.no Git - linux-2.6/commitdiff
Input: lifebook - fix an oops on Panasonic CF-18
authorDmitry Torokhov <dtor@insightbb.com>
Fri, 20 Jul 2007 04:29:14 +0000 (00:29 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Fri, 20 Jul 2007 04:29:14 +0000 (00:29 -0400)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/lifebook.c

index 1740cadd95942aac53487629ec485644cf9a3d02..91109b49fde1475d30d2489eff29d8c8b0d42eb3 100644 (file)
@@ -109,7 +109,7 @@ static psmouse_ret_t lifebook_process_byte(struct psmouse *psmouse)
 {
        struct lifebook_data *priv = psmouse->private;
        struct input_dev *dev1 = psmouse->dev;
-       struct input_dev *dev2 = priv->dev2;
+       struct input_dev *dev2 = priv ? priv->dev2 : NULL;
        unsigned char *packet = psmouse->packet;
        int relative_packet = packet[0] & 0x08;