commit | f638dd3918a4caa910ce62176d2d185203867876 | [log] [tgz] |
---|---|---|
author | Tony Cho <tony.cho@atmel.com> | Mon Sep 07 19:09:31 2015 +0900 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Sep 12 18:24:45 2015 -0700 |
tree | d0a4e18997fb9420564bc2a8c0f8a5ef3590f6f0 | |
parent | 700db05372bf44eb44a6e0bbae749ef0d538b192 [diff] |
staging: wilc1000: fix potential memory leak This patch adds kfree(mgmt_tx) when memory allocation of mgmt_tx->buff fails in the second calls of kmalloc() to avoid the memory leak from mgmt_tx first allocated before the second calls of kmalloc(). Signed-off-by: Tony Cho <tony.cho@atmel.com> Signed-off-by: Chris Park <chirs.park@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>