Skip to content

staging: tidspbridge: memory leak fixes

Omar Ramirez Luna linux-omap 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2staging: tidspbridge: fix bridge_open memory leaksdrivers/staging/tidspbridge/rmgr/drv_interface.c+32 -233 replies
2/2staging: tidspbridge: fix incorrect free to drv_datapdrivers/staging/tidspbridge/core/tiomap3430.c drivers/staging/tidspbridge/rmgr/drv_interface.c+3 -26 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] staging: tidspbridge: memory leak fixes

These patches solve two lingering memory leak scenarios introduced in tidspbridge code.

1. Due to missing balanced calls during bridge_release deallocation, and a potential leak in bridge_open because of missing cleanup path.
2. Leaks because of a misuse of an already freed pointer, which triggered error paths during module removal leaking some memory.

When accepted they must be propagated to stable kernel releases.

Omar Ramirez Luna (2):
staging: tidspbridge: fix bridge_open memory leaks
staging: tidspbridge: fix incorrect free to drv_datap

 drivers/staging/tidspbridge/core/tiomap3430.c    |    2 -
 drivers/staging/tidspbridge/rmgr/drv_interface.c |   58 +++++++++++++---------
 2 files changed, 35 insertions(+), 25 deletions(-)
Signature · 1 line
1.7.4.1