Input: synaptics-rmi4 - prevent null pointer dereference in f30
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 10 Mar 2017 18:10:54 +0000 (10:10 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 10 Mar 2017 18:22:53 +0000 (10:22 -0800)
commitb6573da139ecbee6f2c77392b51266d4521d50ac
treedf161bc74a23fc597b942f26160fb0157770d315
parent45838660e34d90db8d4f7cbc8fd66e8aff79f4fe
Input: synaptics-rmi4 - prevent null pointer dereference in f30

If the platform data has f30_data.disable set, f30 in rmi_f30_config()
might be null. Prevent a kernel oops by checking for non-null f30.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f30.c