[media] s5p-mfc: fix error path in driver probe
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 8 Jun 2016 11:33:40 +0000 (08:33 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 17:26:26 +0000 (14:26 -0300)
commite4fac74d9b20bb162627ebdb5216918f2c2baa7d
tree357364ff3fbf2b647e4c2861e14cad4279c54260
parentb16a2d872dbf38bcbb5a385a8113ce3efd91859d
[media] s5p-mfc: fix error path in driver probe

This patch fixes the error path in the driver probe, so in case of
any failure, the resources are not leaked.

Reported-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c