]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: Fix memory leak in iwl_req_fw_callback()
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 23 Mar 2015 19:07:57 +0000 (14:07 -0500)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 24 Mar 2015 09:40:36 +0000 (11:40 +0200)
commita71aaf66725e8fc02253a3bbea15d27e656434fe
tree512345dbc248e428dd2ef3508143130fd787dc9d
parent1f16ea294d2ef63013740f4c8539e430b6c12dff
iwlwifi: Fix memory leak in iwl_req_fw_callback()

In this routine, kzalloc allocates a memory block. This allocation is
freed in the error paths, but not in the normal exit, thus the allocation
is leaked.

The kmemleak facility was used to find the leak.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Johannes Berg <johannes.berg@intel.com>
Cc: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Cc: Intel Linux Wireless <ilw@linux.intel.com>
drivers/net/wireless/iwlwifi/iwl-drv.c