Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f7679dab authored by Roel Kluin's avatar Roel Kluin Committed by Ingo Molnar
Browse files

perf_counter tools: Fix strbuf_fread() error path handling



size_t res cannot be less than 0 - fread returns 0 on error.

[ Updated by: René Scharfe <rene.scharfe@lsrfire.ath.cx> ]

Reported-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Junio C Hamano <gitster@pobox.com>
LKML-Reference: <4A3FB479.2090902@lsrfire.ath.cx>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent cca03c0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment