diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2024-05-27 23:43:38 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-05-30 16:34:58 +0200 |
commit | 328af04b1ac279f17c09ddd5958aa6ec47131c80 (patch) | |
tree | 8f6b56603af40cba90b609b3712510e23385b50c /drivers/media/pci | |
parent | c19fa08c1414644b0d9275d336bdaff90af57d0b (diff) | |
download | lwn-328af04b1ac279f17c09ddd5958aa6ec47131c80.tar.gz lwn-328af04b1ac279f17c09ddd5958aa6ec47131c80.zip |
media: mei: csi: Put the IPU device reference
The mei csi's probe function obtains a reference to the IPU device but
never puts that reference. Do that now.
Fixes: 33116eb12c6b ("media: ivsc: csi: Use IPU bridge")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/intel/ivsc/mei_csi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/intel/ivsc/mei_csi.c b/drivers/media/pci/intel/ivsc/mei_csi.c index 89b582a221ab..53151d016188 100644 --- a/drivers/media/pci/intel/ivsc/mei_csi.c +++ b/drivers/media/pci/intel/ivsc/mei_csi.c @@ -677,6 +677,7 @@ static int mei_csi_probe(struct mei_cl_device *cldev, return -ENODEV; ret = ipu_bridge_init(&ipu->dev, ipu_bridge_parse_ssdb); + put_device(&ipu->dev); if (ret < 0) return ret; if (WARN_ON(!dev_fwnode(dev))) |