Skip to content

ti_sci: Address some issues found by Smatch

Andrew Goodbody u-boot 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20250725-ti_sci-7bc55cb0cdba

Versions newest first

  1. v3 Latest3 patches 3 repliesIn review
  2. v23 patches 4 repliesSuperseded
  3. v13 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Pick up review tags
- Change dev_dbg call to dev_err to be consistent with surrounding code in 2/3
- Update subject line of 3/3 to be more explicit
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ti_sci: Prevent memory leakdrivers/firmware/ti_sci.c+5 -10 replies
2/3ti_sci: Provide error code on error exitdrivers/firmware/ti_sci.c+2 -20 replies
3/3ti_sci: Pointer is never assigned to valid valuedrivers/firmware/ti_sci.c+2 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchUdit KumarAnshul DalalNishanth Menon
SeriesT-b R-b
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/3] ti_sci: Address some issues found by Smatch

Prevent a memory leak from a non-freed malloc. Return an error code on an error path.
Assign a value to a pointer before it is dereferenced.

---
Changes in v3:
- Pick up review tags
- Change dev_dbg call to dev_err to be consistent with surrounding code in 2/3
- Update subject line of 3/3 to be more explicit
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Add cast when assigning to resp
- Replace malloc with devm_kmalloc
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Andrew Goodbody (3):
ti_sci: Prevent memory leak
ti_sci: Provide error code on error exit
ti_sci: Pointer is never assigned to valid value

 drivers/firmware/ti_sci.c | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

---
base-commit: c280c4f7e52f08255f491783b3143a3be1fc08b0
change-id: 20250725-ti_sci-7bc55cb0cdba

Best regards,

Signature · 1 line
Andrew Goodbody <[email protected]>