Re: (subset) [PATCH] leds: cht-wcove: use devm_led_classdev_register() to avoid memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 20 Dec 2024 17:53:46 +0900, Joe Hattori wrote:
> cht_wc_leds_probe() leaks memory when the second led_classdev_register()
> call in the for-loop fails as it does not call the cleanup function
> led_classdev_unregister() on the first device. Avoid this leak by
> calling devm_led_classdev_register().
> 
> 

Applied, thanks!

[1/1] leds: cht-wcove: use devm_led_classdev_register() to avoid memory leak
      commit: 417cad5dc782096350e6a967ee5dd3417a19a24e

--
Lee Jones [李琼斯]





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux