]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: ni_tio: make ni_gpct_device_destroy() NULL pointer safe
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 22 Mar 2016 18:10:40 +0000 (11:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Mar 2016 14:30:36 +0000 (07:30 -0700)
commitbed05b6c3434e62310c2e37ef234f02ce57cf74d
tree16c62e2ff04c63a17829a618e3f7f06974ed174a
parent2460e3cd9f5fad5630b3f9ce556bd37b7b5323f0
staging: comedi: ni_tio: make ni_gpct_device_destroy() NULL pointer safe

Modify the pointer check to make this function NULL pointer safe.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_tio.c