staging: wilc1000: fix a couple of memory leaks
authorColin Ian King <colin.king@canonical.com>
Mon, 21 Mar 2016 22:42:11 +0000 (22:42 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Mar 2016 02:27:36 +0000 (22:27 -0400)
commitf54e994c2900ac5f0d4e12faf430d96e29f389c2
treeeac3f04d3c8228432474a256a2e6e7f20a871894
parent2e11590171683c6b12193fe4b0ede1e6201b7f45
staging: wilc1000: fix a couple of memory leaks

The ENOMEM error return paths are not free'ing allocated memory
resulting in a memory leak of allocated structures. Perform the
required kfree to fix the memory leaks.

Issue discovered with static analysis using CoverityScan

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/coreconfigurator.c