mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
intel_th: fix device leak on output open()
commit95fc36a234upstream. Make sure to drop the reference taken when looking up the th device during output device open() on errors and on close(). Note that a recent commit fixed the leak in a couple of open() error paths but not all of them, and the reference is still leaking on successful open(). Fixes:39f4034693("intel_th: Add driver infrastructure for Intel(R) Trace Hub devices") Fixes:6d5925b667("intel_th: Fix error handling in intel_th_output_open") Cc: stable@vger.kernel.org # 4.4:6d5925b667Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ma Ke <make24@iscas.ac.cn> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20251208153524.68637-2-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3b90d099ef
commit
f9b059bda4
1 changed files with 16 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue