]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
cxd2820r: fix gpio null pointer dereference
authorAntti Palosaari <crope@iki.fi>
Mon, 16 Jan 2017 21:27:41 +0000 (19:27 -0200)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commitb987fef75d7e198bea5de62ca73d53b7ba9cf7a5
treea70a0d1a2ff43e1a7d87ca1ef288d39779cad5a3
parent31f6c5fcf6e6d8480153b5ea871340050ae618ff
cxd2820r: fix gpio null pointer dereference

BugLink: http://bugs.launchpad.net/bugs/1672544
commit 0ffb94b6cc5df6376ab6bff5b80075641f6716f8 upstream.

Setting GPIOs during probe causes null pointer deference when
GPIOLIB was not selected by Kconfig. Initialize driver private
field before calling set gpios.

It is regressing bug since 4.9.

Fixes: 07fdf7d9f19f ("[media] cxd2820r: add I2C driver bindings")
Reported-by: Chris Rankin <rankincj@gmail.com>
Tested-by: Chris Rankin <rankincj@gmail.com>
Tested-by: Håkan Lennestål <hakan.lennestal@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/media/dvb-frontends/cxd2820r_core.c