From: Dmitry Torokhov Date: Fri, 20 Jul 2007 04:29:14 +0000 (-0400) Subject: Input: lifebook - fix an oops on Panasonic CF-18 X-Git-Tag: v2.6.23-rc1~207^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6b20d8d62d87451f41365945b27202d7dadaee6;p=linux-2.6 Input: lifebook - fix an oops on Panasonic CF-18 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/mouse/lifebook.c b/drivers/input/mouse/lifebook.c index 1740cadd95..91109b49fd 100644 --- a/drivers/input/mouse/lifebook.c +++ b/drivers/input/mouse/lifebook.c @@ -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;