android_kernel_motorola_sm6375/drivers/gnss
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Wei Yongjun f2f18147c7 gnss: sirf: fix error return code in sirf_probe()
commit 43d7ce70ae43dd8523754b17f567417e0e75dbce upstream.

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

This avoids a use-after-free in case the driver is later unbound.

Fixes: d2efbbd18b ("gnss: add driver for sirfstar-based receivers")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
[ johan: amend commit message; mention potential use-after-free ]
Cc: stable <[email protected]>	# 4.19
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-06-22 09:31:20 +02:00
..
core.c
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile
mtk.c
serial.c
serial.h
sirf.c gnss: sirf: fix error return code in sirf_probe() 2020-06-22 09:31:20 +02:00
ubx.c