summaryrefslogtreecommitdiffstats
path: root/drivers/connector
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-05-26 09:59:57 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-05-28 08:00:14 +0200
commitab0ed481012811fed052f609b364c118ce8a576e (patch)
tree5f0330565ed01acf8024daf9cb94f8622093f4f7 /drivers/connector
parentmedia: intel/ipu6: Move isys_remove() close to isys_probe() (diff)
downloadlinux-ab0ed481012811fed052f609b364c118ce8a576e.tar.xz
linux-ab0ed481012811fed052f609b364c118ce8a576e.zip
media: intel/ipu6: Fix an error handling path in isys_probe()
If an error occurs after a successful alloc_fw_msg_bufs() call, some resources should be released as already done in the remove function. Add a new free_fw_msg_bufs() function that releases what has been allocated by alloc_fw_msg_bufs(). Also use this new function in isys_remove() to avoid some code duplication. Fixes: f50c4ca0a820 ("media: intel/ipu6: add the main input system driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/connector')
0 files changed, 0 insertions, 0 deletions