]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita9e0be91321f9ec4316e9a7fc57715a91da8ba71
treec26508ac7f628311c7ce5b8569a22b5f288557a8
parent59aab3f08a57fa7c39d2f4009dfff82e5420a131
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