summaryrefslogtreecommitdiffstats
path: root/drivers/iio/magnetometer/ak8975.c
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2016-05-04 07:41:22 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-04 07:57:14 +0200
commita0ca97b808c06793fd9dfb69243ce945c9fff501 (patch)
tree766f7514ac832b6937ba161123ec4d2475648ef6 /drivers/iio/magnetometer/ak8975.c
parentstaging: wilc1000: fix infoleak in wilc_wfi_cfgoperations (diff)
downloadlinux-a0ca97b808c06793fd9dfb69243ce945c9fff501.tar.xz
linux-a0ca97b808c06793fd9dfb69243ce945c9fff501.zip
staging: dgnc: Fix a NULL pointer dereference
The error handling for print_drive after calling tty_alloc_driver() was needed. But there was error handling but too late for this. Error handling code moved after tty_alloc_driver() call. Fixes: 60b3109e5e2d ("staging: dgnc: use tty_alloc_driver instead of kcalloc") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/magnetometer/ak8975.c')
0 files changed, 0 insertions, 0 deletions