thermal: Fix/cleanup error paths in __thermal_cooling_device_register()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 of 3 patches 2 repliesIn review
2 of 3 patches are in this archive. The cover letter announces 3.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/3 | thermal: core: Move cdev cleanup to thermal_release()drivers/ | +14 | 1 reply | |
| 3/3 | thermal: core: Use device_unregister() instead of device_del/put()drivers/ | +1 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Frank Rowand | Yang Yingliang | Caleb Connolly |
|---|---|---|---|
| Series | T-b | R-b | T-b |
| 2/3 | R-b | ||
| 3/3 | R-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.
Cover letter [PATCH 0/3] thermal: Fix/cleanup error paths in __thermal_cooling_device_register()
Hi,
The error paths in __thermal_cooling_device_register() are trying to free un-acquired resources, fix that and clean it up a bit.
Caleb, can you please test this? I have just build tested it for now.
--
Viresh
Viresh Kumar (3):
thermal: core: call put_device() only after device_register() fails
thermal: core: Move cdev cleanup to thermal_release()
thermal: core: Use device_unregister() instead of device_del/put()
drivers/thermal/thermal_core.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-)
Signature · 1 line
2.31.1.272.g89b43f80a514