OSDN Git Service

staging: wilc1000: Modify null check routine
authorLeo Kim <leo.kim@atmel.com>
Tue, 22 Sep 2015 05:34:43 +0000 (14:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 00:27:01 +0000 (02:27 +0200)
commit234837decbffdb28325588f66811796698d68cf2
treef27c8a9aaf154ab0a893f848cdfa1b0b540d8cb1
parentbcabc6f32888435932364702ebf368164dea6678
staging: wilc1000: Modify null check routine

This patch removes the potential faults which may happen when unexpectedly
getting access to invalid pointer. Return error when the invalid memory is
accessed.

Signed-off-by: Leo Kim <leo.kim@atmel.com>
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c