Commit e6b20d8d authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: lifebook - fix an oops on Panasonic CF-18

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 55178537
...@@ -109,7 +109,7 @@ static psmouse_ret_t lifebook_process_byte(struct psmouse *psmouse) ...@@ -109,7 +109,7 @@ static psmouse_ret_t lifebook_process_byte(struct psmouse *psmouse)
{ {
struct lifebook_data *priv = psmouse->private; struct lifebook_data *priv = psmouse->private;
struct input_dev *dev1 = psmouse->dev; 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; unsigned char *packet = psmouse->packet;
int relative_packet = packet[0] & 0x08; int relative_packet = packet[0] & 0x08;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment