Skip to content
Commit ac568863 authored by Igor Matheus Andrade Torrente's avatar Igor Matheus Andrade Torrente Committed by Mauro Carvalho Chehab
Browse files

media: em28xx: Fix possible memory leak of em28xx struct



The em28xx struct kref isn't being decreased after an error in the
em28xx_ir_init, leading to a possible memory leak.

A kref_put and em28xx_shutdown_buttons is added to the error handler code.

Signed-off-by: default avatarIgor Matheus Andrade Torrente <igormtorrente@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent a3a54bf4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment