summaryrefslogtreecommitdiffstats
path: root/security/Kconfig
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-07-16 12:42:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-16 12:48:07 +0200
commitd9995a0fab40af333b08902ad43a387843ca0e17 (patch)
tree98e3a413a9db294b3532ddcb5e59ce71afafac4e /security/Kconfig
parent55570f1a441787f67efe1aef3b5deae431ca7ee9 (diff)
downloadtalos-obmc-linux-d9995a0fab40af333b08902ad43a387843ca0e17.tar.gz
talos-obmc-linux-d9995a0fab40af333b08902ad43a387843ca0e17.zip
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: 2b6a44035143 ("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>
Diffstat (limited to 'security/Kconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud