staging: wilc1000: fixes potential null dereference 'wid.val'
authorLeo Kim <leo.kim@atmel.com>
Mon, 21 Dec 2015 05:18:24 +0000 (14:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:20:04 +0000 (13:20 -0800)
commit653bb46301617e39e720e60fa2e0a01f946c9a6e
treec26508ac7f628311c7ce5b8569a22b5f288557a8
parent369a1d3bd3b357f9c7cc6ccb320c6b2e7680f9f5
staging: wilc1000: fixes potential null dereference 'wid.val'

This patch fixes the error reported by smatch.
 - Handle_ListenStateExpired() error: potential null dereference 'wid.val'
If kmalloc failed, referenced to a NULL pointer.

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