Patch "[media] coda: fix error path in case of missing pdata on non-DT platform" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
[media] coda: fix error path in case of missing pdata on non-DT platform
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
coda-fix-error-path-in-case-of-missing-pdata-on-non-dt-platform.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
bc717d5e92c8c079280eb4acbe335c6f25041aa2Mon Sep 17 00:00:00 2001
From: Philipp Zabel <[email protected]>
Date: Fri, 26 Feb 2016 08:21:35 -0300
Subject: [media] coda: fix error path in case of missing pdata on non-DT platform
From: Philipp Zabel <[email protected]>
commit bc717d5e92c8c079280eb4acbe335c6f25041aa2 upstream.
If we bail out this early, v4l2_device_register() has not been called yet, so no need to call v4l2_device_unregister().
--- drivers/media/platform/coda/coda-common.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/media/platform/coda/coda-common.c +4 -6
@@ -2119,14 +2119,12 @@ static int coda_probe(struct platform_de pdev_id = of_id ? of_id->data :platform_get_device_id (pdev); -if (of_id) { +if (of_id) dev->devtype = of_id->data; - }else if (pdev_id) { +else if (pdev_id) dev->devtype = &coda_devdata[pdev_id->driver_data]; - }else { - ret = -EINVAL ; - goto err_v4l2_register; - } +else +return -EINVAL ;spin_lock_init (&dev->irqlock);INIT_LIST_HEAD (&dev->instances);
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/coda-fix-error-path-in-case-of-missing-pdata-on-non-dt-platform.patch