aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-05-27 05:54:04 +0000
committerRafael J. Wysocki <[email protected]>2025-05-27 13:22:56 +0000
commit9375e5e3557bf98e9c293aa32a9d2985eed16b5e (patch)
tree6e1d5fd2b4b1559b5bfebf6e080ef498ace9b4af /scripts/gcc-plugins/sancov_plugin.c
parentACPI: MRRM: Fix default max memory region (diff)
downloadkernel-9375e5e3557bf98e9c293aa32a9d2985eed16b5e.tar.gz
kernel-9375e5e3557bf98e9c293aa32a9d2985eed16b5e.zip
ACPI: MRRM: Silence error code static checker warning
The error code is not set correctly on if kasprintf() fails. On the first iteration it would return -EINVAL and subsequent iterations would return success. Set it to -ENOMEM. In real life, this allocation will not fail and if it did the system will not boot so this change is mostly to silence static checker warnings more than anything else. Fixes: 04f53540f791 ("ACPI: MRRM: Add /sys files to describe memory ranges") Signed-off-by: Dan Carpenter <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions