summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAntoni Pokusinski <apokusinski01@gmail.com>2026-09-16 22:51:31 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-10-09 17:03:20 +0200
commit07c57022afb3afc0d7c20efef45a4d3c7389b1c0 (patch)
tree36d6228ba2203e6fea72774630de1c99d88d2e7b /tools/perf/scripts/python/stackcollapse.py
parent953c3d2b5836b6cb6fb987823fa573f38041e636 (diff)
downloadlinux-next-07c57022afb3afc0d7c20efef45a4d3c7389b1c0.tar.gz
linux-next-07c57022afb3afc0d7c20efef45a4d3c7389b1c0.zip
rtc: abx80x: fix error check after i2c_smbus_read in read_alarm()
i2c_smbus_read_i2c_block_data() returns the number of bytes read on success and a negative error code on failure. The existing code treated any non-zero return value as an error. Fix the error handling by checking only for negative return values. Fixes: 718a820a303c ("rtc: abx80x: add alarm support") Signed-off-by: Antoni Pokusinski <apokusinski01@gmail.com> Link: https://patch.msgid.link/20260916205138.16771-3-apokusinski01@gmail.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions