linux_dsm_epyc7002/drivers/media/platform/omap3isp
Suman Anna b7e1e6859f media: omap3isp: fix unbalanced dma_iommu_mapping
The OMAP3 ISP driver manages its MMU mappings through the IOMMU-aware
ARM DMA backend. The current code creates a dma_iommu_mapping and
attaches this to the ISP device, but never detaches the mapping in
either the probe failure paths or the driver remove path resulting
in an unbalanced mapping refcount and a memory leak. Fix this properly.

Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Suman Anna <s-anna@ti.com>
Tested-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-04-20 08:36:05 -04:00
..
cfa_coef_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
gamma_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isp.c media: omap3isp: fix unbalanced dma_iommu_mapping 2018-04-20 08:36:05 -04:00
isp.h media: omap3isp: Use generic parser for parsing fwnode endpoints 2017-10-31 13:48:44 -04:00
ispccdc.c media: platform: fix some 64-bits warnings 2018-04-17 05:50:00 -04:00
ispccdc.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispccp2.c media: omap3isp: Quit using struct v4l2_subdev.host_priv field 2017-08-20 08:18:38 -04:00
ispccp2.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispcsi2.c media: omap3isp: Quit using struct v4l2_subdev.host_priv field 2017-08-20 08:18:38 -04:00
ispcsi2.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispcsiphy.c media: omap3isp: Quit using struct v4l2_subdev.host_priv field 2017-08-20 08:18:38 -04:00
ispcsiphy.h media: omap3isp: csiphy: Don't assume the CSI receiver is a CSI2 module 2017-08-20 08:17:38 -04:00
isph3a_aewb.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
isph3a_af.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
isph3a.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isphist.c [media] v4l: omap3isp: Use dma_request_chan_by_mask() to request the DMA channel 2016-11-16 16:14:20 -02:00
isphist.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isppreview.c media: isppreview: fix __user annotations 2018-04-17 05:31:13 -04:00
isppreview.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispreg.h media: omap3isp: Correctly set IO_OUT_SEL and VP_CLK_POL for CCP2 mode 2017-08-20 08:16:13 -04:00
ispresizer.c [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispresizer.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispstat.c media: ispstat: use %p to print the address of a buffer 2018-04-17 05:30:44 -04:00
ispstat.h [media] use v4l2_get_timestamp where possible 2015-10-01 08:29:23 -03:00
ispvideo.c media: annotate ->poll() instances 2017-11-27 16:20:06 -05:00
ispvideo.h [media] media/platform: convert drivers to use the new vb2_queue dev field 2016-07-08 14:40:50 -03:00
luma_enhance_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
noise_filter_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
omap3isp.h media: omap3isp: Parse CSI1 configuration from the device tree 2017-08-20 08:15:50 -04:00