diff options
| author | Andrzej Hajda <[email protected]> | 2016-01-07 14:28:50 +0100 |
|---|---|---|
| committer | Kalle Valo <[email protected]> | 2016-01-29 11:14:57 +0200 |
| commit | 68f37e5d7a2e00306adab033fba6c3042b33e8e1 (patch) | |
| tree | 6c925854e80baf4bd71aa9a03979d13ecb5414b8 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 17934b6a32b2fdfcc0a9e83d17c780f15627aa30 (diff) | |
wlcore: fix error handling in wlcore_event_fw_logger
wlcore_read/wlcore_write can return negative values so it should
be assigned to signed variable.
The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].
[1]: http://permalink.gmane.org/gmane.linux.kernel/2120705
Fixes: 3719c17e1816 ("wlcore/wl18xx: fw logger over sdio")
Signed-off-by: Andrzej Hajda <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions