summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorZhu Jun <zhujun2@cmss.chinamobile.com>2026-11-20 14:19:17 +0800
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-25 07:42:02 +0900
commit56bb11fe6aacc7666938e8e6765b44aa0cf1fcdd (patch)
tree460290b2fa5255a7a29d9095be9640eab6c75c3b /tools/perf/scripts/python
parenta33ffa8462808547aef24ca557451411d4ce2efc (diff)
tools/bootconfig: Report initrd append failures
The signed return value of write() is compared against a size_t. A negative return becomes an unsigned value and bypasses the error path, so applying a bootconfig can claim success without appending it. Check for a negative return before comparing the byte count. Link: https://lore.kernel.org/all/20261120061917.98169-1-zhujun2@cmss.chinamobile.com/ Fixes: a995e6bc0524 ("tools/bootconfig: Fix to check the write failure correctly") Cc: stable@vger.kernel.org Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions