]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: go7007-loader: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 10:39:18 +0000 (11:39 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 16 Mar 2026 15:30:20 +0000 (16:30 +0100)
commit64f47fca95c307c569adb7fec48ffc2891e3b209
treef87155c12957e822078f327aca650df2d2cd3af8
parentf8e1fc918a9fe67103bcda01d20d745f264d00a7
media: go7007-loader: drop redundant device reference

Driver core holds a reference to the USB interface and its parent USB
device while the interface is bound to a driver and there is no need to
take additional references unless the structures are needed after
disconnect.

Drop the redundant device reference to reduce cargo culting, make it
easier to spot drivers where an extra reference is needed, and reduce
the risk of memory leaks when drivers fail to release it.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/usb/go7007/go7007-loader.c