diff options
| author | Sean Rhodes <sean@starlabs.systems> | 2026-10-21 08:55:54 +0100 |
|---|---|---|
| committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2026-11-02 03:11:53 +0000 |
| commit | 2433db2af8e1482a3a50b8cefaf25cf7e4a9374d (patch) | |
| tree | bd71335d1ea66043be3ce9d9b690d9c61778e82b /tools/perf/scripts/python | |
| parent | e094fd05defaf0b05774ea1c65fc2d0ab798c809 (diff) | |
firmware: coreboot: Fix CFR error-pointer handling warning
The scoped kfree cleanup already ignores error pointers, so passing the
pointer through no_free_ptr() before PTR_ERR() is unnecessary. It also
makes the IS_ERR/PTR_ERR expressions appear inconsistent to Coccinelle.
Return PTR_ERR() directly. The scoped cleanup still leaves error pointers
untouched while freeing successful allocations on later returns.
Fixes: f2e05ce9763f ("firmware: coreboot: Add CFR firmware attributes driver")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202610210637.LiJ3U0ob-lkp@intel.com/
Signed-off-by: Sean Rhodes <sean@starlabs.systems>
Link: https://lore.kernel.org/r/CABtds-16eUH6ah3Rr9R=N2605TPdFgDekM5oXVeWqGcmYfWqag@mail.gmail.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
