summaryrefslogtreecommitdiff
path: root/drivers/acpi/custom_method.c
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-18 02:40:14 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 12:27:48 +0200
commit70e2968f3bf2bce0abf2a2e9a9516652d035a376 (patch)
tree2f9c76fa5bdb6747ad24031e65197a8e0411817b /drivers/acpi/custom_method.c
parent11b1a42a99d3ce1d59ab2d7ffa4f52b3e87bf59e (diff)
media: saa7146: add cleanup in hexium_attach()
[ Upstream commit 42e64117d3b4a759013f77bbcf25ab6700e55de7 ] If saa7146_register_device() fails, no cleanup is executed, leading to memory/resource leaks. To fix this issue, perform necessary cleanup work before returning the error. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/acpi/custom_method.c')
0 files changed, 0 insertions, 0 deletions