diff options
| author | Vincent Stehlé <[email protected]> | 2015-10-07 07:08:25 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-10-08 11:01:46 +0100 |
| commit | 17db84eba18eaa20fab687bf38418a2286cb085a (patch) | |
| tree | b3a12c13c213581384fa237d3a281572227934f1 /include/linux | |
| parent | 960819a1e572df82cfa8197133ed3f8aca487e1b (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é <[email protected]>
Cc: Johnny Kim <[email protected]>
Cc: Rachel Kim <[email protected]>
Cc: Dean Lee <[email protected]>
Cc: Chris Park <[email protected]>
Cc: Nicolas Ferre <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions