]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: fix NULL pointer exception in host_int_parse_assoc_resp_info()
authorAjay Singh <ajay.kathat@microchip.com>
Thu, 12 Apr 2018 08:21:14 +0000 (13:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:57:38 +0000 (15:57 +0200)
commite67a39db82dd678eadb96e06f35671d1b8594c61
treed2936884872f4500cae93beb7f4dfc541a7d7929
parent80e87fe40384de3b15428d82895bdcbba90fd10d
staging: wilc1000: fix NULL pointer exception in host_int_parse_assoc_resp_info()

Commit 682e9e2be5e1 (staging: wilc1000: free memory allocated for general info
message from firmware) introduced a bug by using wrong source address in
kmemdup(). 'conn_info.req_ies' is used for source address in kempdup()
instead of 'hif_drv->usr_conn_req.ies'.

This commit fixes the NULL pointer dereference issue in
host_int_parse_assoc_resp_info() by using the correct source address in
kmemdup().

Fixes: 682e9e2be5e1 (staging: wilc1000: free memory allocated for general info message from firmware)
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c