diff options
author | Tanya Brokhman <[email protected]> | 2014-04-01 11:01:12 +0300 |
---|---|---|
committer | Artem Bityutskiy <[email protected]> | 2014-05-05 09:31:33 +0300 |
commit | 87ed89d21ede38f86be9419ca7c6dd4761764bbb (patch) | |
tree | 465df391e8858ae8575a2bf72815e4302ab83386 /tools/perf/scripts/python/check-perf-trace.py | |
parent | fcdd57c8902a936a616df2066d873b38ef3ed364 (diff) |
UBI: fix error path in __wl_get_peb
In case of an error (if there are not free PEB's for example),
__wl_get_peb will return a negative value. In order to prevent access
violation we need to test the returned value prior to using it later on.
Signed-off-by: Tatyana Brokhman <[email protected]>
Reviewed-by: Dolev Raviv <[email protected]>
Acked-by: Richard Weinberger <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions