summaryrefslogtreecommitdiff
path: root/scripts/sign-file.c
diff options
context:
space:
mode:
authorVincent Stehlé <vincent.stehle@laposte.net>2015-10-07 07:08:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-08 11:01:46 +0100
commit17db84eba18eaa20fab687bf38418a2286cb085a (patch)
treeb3a12c13c213581384fa237d3a281572227934f1 /scripts/sign-file.c
parent960819a1e572df82cfa8197133ed3f8aca487e1b (diff)
staging: wilc1000: avoid NULL pointer dereference on error
The host_int_init() function can dereference the pstrWFIDrv pointer while it is NULL on its error path. Jump directly to the _fail_ error label in the end of the error handling path to avoid that. By doing that we also skip stopping our kthread and destroying our message queue, but they were not started or created yet in that case anyway. This fixes the following coccinelle error: drivers/staging/wilc1000/host_interface.c:6100:17-33: ERROR: pstrWFIDrv is NULL but dereferenced. Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Johnny Kim <johnny.kim@atmel.com> Cc: Rachel Kim <rachel.kim@atmel.com> Cc: Dean Lee <dean.lee@atmel.com> Cc: Chris Park <chris.park@atmel.com> Cc: Nicolas Ferre <nicolas.ferre@atmel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/sign-file.c')
0 files changed, 0 insertions, 0 deletions