OpenCloudOS-Kernel/drivers/gnss
Dan Carpenter d9995a0fab gnss: fix potential error pointer dereference
The gnss_allocate_device() function returns a mix of NULL and error
pointers on error.  It should only return one or the other.  Since the
callers both check for NULL, I've modified it to return NULL on error.

Fixes: 2b6a440351 ("gnss: add GNSS receiver subsystem")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-16 12:48:07 +02:00
..
Kconfig gnss: add driver for sirfstar-based receivers 2018-06-28 20:32:51 +09:00
Makefile gnss: add driver for sirfstar-based receivers 2018-06-28 20:32:51 +09:00
core.c gnss: fix potential error pointer dereference 2018-07-16 12:48:07 +02:00
serial.c gnss: add generic serial driver 2018-06-28 20:31:32 +09:00
serial.h gnss: add generic serial driver 2018-06-28 20:31:32 +09:00
sirf.c gnss: add receiver type support 2018-06-28 20:32:51 +09:00
ubx.c gnss: ubx: make struct ubx_gserial_ops static 2018-07-16 12:48:07 +02:00