diff options
| author | 2018-12-22 03:08:15 -0600 | |
|---|---|---|
| committer | 2019-01-15 16:31:09 +0100 | |
| commit | fe2570fbf3dfce39996819deeaf1693ac6d7b5a3 (patch) | |
| tree | ab13cc5bf32bd6225d207c85e6341fce70f4c35c /include/linux/stackprotector.h | |
| parent | staging: wilc1000: fix registration frame size (diff) | |
staging: wilc1000: fix memory leak in wilc_add_rx_gtk
In case *mode* happens to be different than WILC_AP_MODE and
WILC_STATION_MODE, gtk_key is not released, hence leanding
to a memory leak. So, in this case it is safer to release
gtk_key just before returning to callers.
Addresses-Coverity-ID: 1476020 ("Resource leak")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
