aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJohannes Berg <[email protected]>2017-02-28 16:44:16 +0100
committerLuca Coelho <[email protected]>2017-04-25 22:48:56 +0300
commit53d515ec677a1903bb507b81dc12ae6922846c1b (patch)
tree606af8a6829af9b31e7f0ac7f074f7ab5cf2d485 /tools/perf/scripts/python
parentb0fa818e6c5f48bfbc3dfe1317754390b88446c1 (diff)
iwlwifi: don't leak memory on allocation failure
If we fail to allocate the small chunk of memory for the pieces of the firmware file, we leak the whole firmware image instead... Since the allocation failure is really unlikely, just bail out at that point instead. Remove the error message at the label since we now (and actually have been) use it for various reasons. Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions