]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18e954d293ae2ba52bd98436e9c767c2833bd55f
treeeac3f04d3c8228432474a256a2e6e7f20a871894
parent7b61d254d3721993b5cd49a4b196bd0021f22f34
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