Skip to content
Commit 8ba9d91c authored by Lu Hongfei's avatar Lu Hongfei Committed by Greg Kroah-Hartman
Browse files

media: mdp3: Fix resource leaks in of_find_device_by_node

[ Upstream commit 35ca8ce4

 ]

Use put_device to release the object get through of_find_device_by_node,
avoiding resource leaks.

Signed-off-by: default avatarLu Hongfei <luhongfei@vivo.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b7879612
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment