]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: cx231xx: drop redundant device reference
authorJohan Hovold <johan@kernel.org>
Thu, 5 Mar 2026 13:00:25 +0000 (14:00 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 16 Mar 2026 15:30:20 +0000 (16:30 +0100)
commit68380ec2161ee61ce4f23001dfb536bbaa8f4979
tree0e3b6bf60027795640cee0726e67cec23593941c
parentdbc6798b80481a20f9aff671bc4d529eae63c9e8
media: cx231xx: 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/cx231xx/cx231xx-cards.c