]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: lights: avoid channel torch double free
authorRui Miguel Silva <rui.silva@linaro.org>
Thu, 3 Dec 2015 16:07:48 +0000 (16:07 +0000)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 3 Dec 2015 23:33:34 +0000 (15:33 -0800)
commitd644181fe60f4fcfca7e9e9e9b0503993e391e69
tree9e5e4e374dfe24f240b189ca5e40be29101faa67
parent3f85c787b74c26f3816017e64288af907f291462
greybus: lights: avoid channel torch double free

When attaching torch to a flash we release the channel torch resources,
but afterwards we do it again when releasing all the channels.
Just free all the resource at channel release.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/light.c