linux/drivers/staging/media
Christophe JAILLET 3b6471c7be media: Staging: media: Release the correct resource in an error handling path
'res' is reassigned several times in the function and if we 'goto
error_unmap', its value is not the returned value of 'request_mem_region()'
anymore.

Introduce a new 'struct resource *' variable (i.e. res2) to keep a pointer
to the right resource, if needed in the error handling path.

Fixes: 4b4eda0017 ("Staging: media: Unmap and release region obtained by ioremap_nocache")

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-29 16:55:36 -04:00
..
allegro-dvt media: staging: allegro: cleanup two warnings 2019-05-29 09:43:30 -04:00
bcm2048 media updates for v5.1-rc1 2019-05-08 11:13:17 -07:00
davinci_vpfe media: Staging: media: Release the correct resource in an error handling path 2019-05-29 16:55:36 -04:00
imx media: imx7-media-csi: Change imx7_csi_enable() to void 2019-05-28 14:20:12 -04:00
ipu3 media: staging: imgu: Drop support for other page sizes 2019-05-29 11:22:13 -04:00
omap4iss media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
rockchip/vpu media: rockchip/vpu: Add support for MPEG-2 decoding on RK3288 2019-05-29 11:14:43 -04:00
soc_camera media updates for v5.1-rc1 2019-05-08 11:13:17 -07:00
sunxi media: cedrus: Add H264 decoding support 2019-05-29 06:31:08 -04:00
tegra-vde staging: media: tegra-vde: add proper SPDX identifiers on file that did not have it. 2019-04-03 11:10:18 +02:00
Kconfig media: allegro: add Allegro DVT video IP core driver 2019-05-29 06:38:40 -04:00
Makefile media: allegro: add Allegro DVT video IP core driver 2019-05-29 06:38:40 -04:00