projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
staging: wilc1000: fix potential memory leak
[deliverable/linux.git]
/
drivers
/
staging
/
wilc1000
/
wilc_wfi_cfgoperations.c
diff --git
a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index 663d0f818e4aa011a86409291b1af17782b8e1d9..cf76a337a33688ec7fe36bc53c65ed0454b624cf 100644
(file)
--- a/
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@
-2533,6
+2533,7
@@
int WILC_WFI_mgmt_tx(struct wiphy *wiphy,
mgmt_tx->buff = WILC_MALLOC(buf_len);
if (mgmt_tx->buff == NULL) {
PRINT_ER("Failed to allocate memory for mgmt_tx buff\n");
+ kfree(mgmt_tx);
return WILC_FAIL;
}
memcpy(mgmt_tx->buff, buf, len);
This page took
0.03544 seconds
and
5
git commands to generate.