diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-22 00:36:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 11:26:08 -0500 |
commit | 5d97046a371a44010bbfd18a75c2b107da30a606 (patch) | |
tree | 6c5efb8507f0f6519174d622c4a06894a6114630 /drivers/media/platform | |
parent | b9f1fbcd0e9b7ab96876a9e53cbea4d2e279e82c (diff) |
[media] davinci: vpbe: fix missing unlock on error in vpbe_initialize()
Add the missing unlock on the error handling path in function
vpbe_initialize().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Prabhakar Lad <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/davinci/vpbe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index 4d9469733fd9..4ca0f9a2ad8a 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c | |||
@@ -631,8 +631,10 @@ static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev) | |||
631 | 631 | ||
632 | err = bus_for_each_dev(&platform_bus_type, NULL, vpbe_dev, | 632 | err = bus_for_each_dev(&platform_bus_type, NULL, vpbe_dev, |
633 | platform_device_get); | 633 | platform_device_get); |
634 | if (err < 0) | 634 | if (err < 0) { |
635 | return err; | 635 | ret = err; |
636 | goto fail_dev_unregister; | ||
637 | } | ||
636 | 638 | ||
637 | vpbe_dev->venc = venc_sub_dev_init(&vpbe_dev->v4l2_dev, | 639 | vpbe_dev->venc = venc_sub_dev_init(&vpbe_dev->v4l2_dev, |
638 | vpbe_dev->cfg->venc.module_name); | 640 | vpbe_dev->cfg->venc.module_name); |