summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@gmail.com>2016-04-24 19:40:13 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-04-29 17:43:15 -0700
commite26eaf457989326a41eb58754f18333308cab321 (patch)
tree9852a683a7e82255860b1e22fefb7864544de300 /scripts
parent02e020480daf3a7726db493ff28f9391ff6bb9c4 (diff)
downloadcachepc-linux-e26eaf457989326a41eb58754f18333308cab321.tar.gz
cachepc-linux-e26eaf457989326a41eb58754f18333308cab321.zip
Staging: wlan-ng: memory allocated inside mkimage() is not freed if subsequent calls fails.
This patch frees memory allocated inside mkimage() in case mkimage() or any other subsequent calls inside prism2_fwapply() from prism2fw.c file fails. To fix this I introduces goto labels where the free operation is done in case some operations fails. After the introduction of goto labels has been done, in order to use the same return path, "return x" instuctions were replaced with "goto" instuctions. Signed-off-by: Claudiu Beznea <claudiu.beznea@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions