summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-07-20 00:29:14 -0400
committerDmitry Torokhov <dtor@insightbb.com>2007-07-20 00:29:14 -0400
commite6b20d8d62d87451f41365945b27202d7dadaee6 (patch)
treefb1f0c8df82c8e67c65a2f42108b24ef3992785e /drivers/input
parent5517853712f1f6daac8a7b2590f9b821e767aa13 (diff)
downloadop-kernel-dev-e6b20d8d62d87451f41365945b27202d7dadaee6.zip
op-kernel-dev-e6b20d8d62d87451f41365945b27202d7dadaee6.tar.gz
Input: lifebook - fix an oops on Panasonic CF-18
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/mouse/lifebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/lifebook.c b/drivers/input/mouse/lifebook.c
index 1740cad..91109b4 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;
OpenPOWER on IntegriCloud