staging: wilc1000: free memory allocated for general info message from firmware
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 26 Mar 2018 11:46:03 +0000 (17:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Mar 2018 11:38:47 +0000 (13:38 +0200)
commitfe014d4e6b55a56d81d152ac1643ee6f44bf096c
treeda15f25b9394d8a379437be10a2d0f21f06b3ae3
parent158152be0ae6b492ef7d590237be245f4810ef05
staging: wilc1000: free memory allocated for general info message from firmware

Free allocated memory for failure scenario while processing the
information message received from the firmware. Added NULL check and used
kmemdup in the flow of handling information message.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c