diff options
| author | Ma Ke <make24@iscas.ac.cn> | 2025-07-18 12:50:54 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-08-15 10:47:13 +0300 |
| commit | 4f4098c57e139ad972154077fb45c3e3141555dd (patch) | |
| tree | fd74aaedb3401f8be9b4947dd6defe47b5678dd2 /include/linux/stacktrace.h | |
| parent | 2412f16c9afa7710778fc032139a6df38b68fd7c (diff) | |
| download | linux-4f4098c57e139ad972154077fb45c3e3141555dd.tar.xz | |
media: lirc: Fix error handling in lirc_register()
When cdev_device_add() failed, calling put_device() to explicitly
release dev->lirc_dev. Otherwise, it could cause the fault of the
reference count.
Found by code review.
Cc: stable@vger.kernel.org
Fixes: a6ddd4fecbb0 ("media: lirc: remove last remnants of lirc kapi")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions
