<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/media/platform, branch v3.10.76</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>media: s5p-mfc: fix mmap support for 64bit arch</title>
<updated>2015-04-19T08:10:50+00:00</updated>
<author>
<name>Marek Szyprowski</name>
<email>m.szyprowski@samsung.com</email>
</author>
<published>2015-03-04T13:55:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=1190df7d8f1cd3aca590c4153441f40b10cc047f'/>
<id>1190df7d8f1cd3aca590c4153441f40b10cc047f</id>
<content type='text'>
commit 05b676ab42f624425d5f6519276e506b812fa058 upstream.

TASK_SIZE is depends on the systems architecture (32 or 64 bits) and it
should not be used for defining offset boundary for mmaping buffers for
CAPTURE and OUTPUT queues. This patch fixes support for MMAP calls on
the CAPTURE queue on 64bit architectures (like ARM64).

Signed-off-by: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt;
Signed-off-by: Kamil Debski &lt;k.debski@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 05b676ab42f624425d5f6519276e506b812fa058 upstream.

TASK_SIZE is depends on the systems architecture (32 or 64 bits) and it
should not be used for defining offset boundary for mmaping buffers for
CAPTURE and OUTPUT queues. This patch fixes support for MMAP calls on
the CAPTURE queue on 64bit architectures (like ARM64).

Signed-off-by: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt;
Signed-off-by: Kamil Debski &lt;k.debski@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@osg.samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>omap3isp: Defer probe when the IOMMU is not available</title>
<updated>2014-06-07T20:25:33+00:00</updated>
<author>
<name>Laurent Pinchart</name>
<email>laurent.pinchart@ideasonboard.com</email>
</author>
<published>2013-03-11T15:02:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=5081b0bcd956f6ef40874bfb8f59f11b2759347a'/>
<id>5081b0bcd956f6ef40874bfb8f59f11b2759347a</id>
<content type='text'>
commit 7c0f812a5d65e712618af880dda4a5cc7ed79463 upstream.

When the OMAP3 ISP driver is compiled in the kernel the device can be
probed before the corresponding IOMMU is available. Defer the probe in
that case, and fix a crash in the error path.

Reported-by: Javier Martin &lt;javier.martin@vista-silicon.com&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 7c0f812a5d65e712618af880dda4a5cc7ed79463 upstream.

When the OMAP3 ISP driver is compiled in the kernel the device can be
probed before the corresponding IOMMU is available. Defer the probe in
that case, and fix a crash in the error path.

Reported-by: Javier Martin &lt;javier.martin@vista-silicon.com&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: omap3isp: preview: Fix the crop margins</title>
<updated>2014-05-06T14:55:31+00:00</updated>
<author>
<name>Florian Vaussard</name>
<email>florian.vaussard@epfl.ch</email>
</author>
<published>2014-01-17T19:37:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=fe529a27f1970b373662c175d789e842d418a1b8'/>
<id>fe529a27f1970b373662c175d789e842d418a1b8</id>
<content type='text'>
commit 8b57b9669aa884ac75b8d09c251d6b1755533c15 upstream.

Commit 3fdfedaaa "[media] omap3isp: preview: Lower the crop margins"
accidentally changed the previewer's cropping, causing the previewer
to miss four pixels on each line, thus corrupting the final image.
Restored the removed setting.

Signed-off-by: Florian Vaussard &lt;florian.vaussard@epfl.ch&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 8b57b9669aa884ac75b8d09c251d6b1755533c15 upstream.

Commit 3fdfedaaa "[media] omap3isp: preview: Lower the crop margins"
accidentally changed the previewer's cropping, causing the previewer
to miss four pixels on each line, thus corrupting the final image.
Restored the removed setting.

Signed-off-by: Florian Vaussard &lt;florian.vaussard@epfl.ch&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: s5p_mfc: remove s5p_mfc_get_node_type() function</title>
<updated>2014-02-13T21:48:02+00:00</updated>
<author>
<name>Marek Szyprowski</name>
<email>m.szyprowski@samsung.com</email>
</author>
<published>2013-12-03T13:12:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=222708235bb90510b026256ba45abb24debfa951'/>
<id>222708235bb90510b026256ba45abb24debfa951</id>
<content type='text'>
commit b80cb8dc4162bc954cc71efec192ed89f2061573 upstream.

s5p_mfc_get_node_type() relies on get_index() helper function, which in
turn relies on video_device index numbers assigned on driver
registration. All this code is not really needed, because there is
already access to respective video_device structures via common
s5p_mfc_dev structure. This fixes the issues introduced by patch
1056e4388b0454917a512618c8416a98628fc9ce ("v4l2-dev: Fix race condition
on __video_register_device"), which has been merged in v3.12-rc1.

Signed-off-by: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt;
Signed-off-by: Kamil Debski &lt;k.debski@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit b80cb8dc4162bc954cc71efec192ed89f2061573 upstream.

s5p_mfc_get_node_type() relies on get_index() helper function, which in
turn relies on video_device index numbers assigned on driver
registration. All this code is not really needed, because there is
already access to respective video_device structures via common
s5p_mfc_dev structure. This fixes the issues introduced by patch
1056e4388b0454917a512618c8416a98628fc9ce ("v4l2-dev: Fix race condition
on __video_register_device"), which has been merged in v3.12-rc1.

Signed-off-by: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt;
Signed-off-by: Kamil Debski &lt;k.debski@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: sh_vou: almost forever loop in sh_vou_try_fmt_vid_out()</title>
<updated>2013-11-20T20:27:48+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2013-08-23T09:54:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=8212db5775902438ae8875e223738fc931325ce4'/>
<id>8212db5775902438ae8875e223738fc931325ce4</id>
<content type='text'>
commit 47c32ec9392a1fc7dec9d7cfde084e1432fcee82 upstream.

The "i &lt; " part of the "i &lt; ARRAY_SIZE()" condition was missing.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
[g.liakhovetski@gmx.de: remove unrelated superfluous braces]
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 47c32ec9392a1fc7dec9d7cfde084e1432fcee82 upstream.

The "i &lt; " part of the "i &lt; ARRAY_SIZE()" condition was missing.

Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
[g.liakhovetski@gmx.de: remove unrelated superfluous braces]
Signed-off-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: media: coda: Fix DT driver data pointer for i.MX27</title>
<updated>2013-09-27T00:18:26+00:00</updated>
<author>
<name>Alexander Shiyan</name>
<email>shc_work@mail.ru</email>
</author>
<published>2013-06-15T11:09:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=4ff5ef250fb348707bad956e6eef7f84f1021675'/>
<id>4ff5ef250fb348707bad956e6eef7f84f1021675</id>
<content type='text'>
commit 7b0dd9e60e714951b5400dd0740b3c4c3c3cb76f upstream.

The data pointer should point to DT data, and not to the ID
array.

Signed-off-by: Alexander Shiyan &lt;shc_work@mail.ru&gt;
Signed-off-by: Kamil Debski &lt;k.debski@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 7b0dd9e60e714951b5400dd0740b3c4c3c3cb76f upstream.

The data pointer should point to DT data, and not to the ID
array.

Signed-off-by: Alexander Shiyan &lt;shc_work@mail.ru&gt;
Signed-off-by: Kamil Debski &lt;k.debski@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: s5p-g2d: Fix registration failure</title>
<updated>2013-09-27T00:18:17+00:00</updated>
<author>
<name>Sachin Kamat</name>
<email>sachin.kamat@linaro.org</email>
</author>
<published>2013-07-15T05:36:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=469641b2b568a9295396ff723573bdeaf2c4293e'/>
<id>469641b2b568a9295396ff723573bdeaf2c4293e</id>
<content type='text'>
commit 8a09a4cc9bd9389dc6a3b5b2dd3a7d64d2fab7e1 upstream.

Commit 1c1d86a1ea ("[media] v4l2: always require v4l2_dev,
rename parent to dev_parent") expects v4l2_dev to be always set.
It converted most of the drivers using the parent field of video_device
to v4l2_dev field. G2D driver did not set the parent field. Hence it got
left out. Without this patch we get the following boot warning and G2D
driver fails to register the video device.
WARNING: CPU: 0 PID: 1 at drivers/media/v4l2-core/v4l2-dev.c:775 __video_register_device+0xfc0/0x1028()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.11.0-rc1-00001-g1c3e372-dirty #9
[&lt;c0014b7c&gt;] (unwind_backtrace+0x0/0xf4) from [&lt;c0011524&gt;] (show_stack+0x10/0x14)
[&lt;c0011524&gt;] (show_stack+0x10/0x14) from [&lt;c041d7a8&gt;] (dump_stack+0x7c/0xb0)
[&lt;c041d7a8&gt;] (dump_stack+0x7c/0xb0) from [&lt;c001dc94&gt;] (warn_slowpath_common+0x6c/0x88)
[&lt;c001dc94&gt;] (warn_slowpath_common+0x6c/0x88) from [&lt;c001dd4c&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001dd4c&gt;] (warn_slowpath_null+0x1c/0x24) from [&lt;c02cf8d4&gt;] (__video_register_device+0xfc0/0x1028)
[&lt;c02cf8d4&gt;] (__video_register_device+0xfc0/0x1028) from [&lt;c0311a94&gt;] (g2d_probe+0x1f8/0x398)
[&lt;c0311a94&gt;] (g2d_probe+0x1f8/0x398) from [&lt;c0247d54&gt;] (platform_drv_probe+0x14/0x18)
[&lt;c0247d54&gt;] (platform_drv_probe+0x14/0x18) from [&lt;c0246b10&gt;] (driver_probe_device+0x108/0x220)
[&lt;c0246b10&gt;] (driver_probe_device+0x108/0x220) from [&lt;c0246cf8&gt;] (__driver_attach+0x8c/0x90)
[&lt;c0246cf8&gt;] (__driver_attach+0x8c/0x90) from [&lt;c0245050&gt;] (bus_for_each_dev+0x60/0x94)
[&lt;c0245050&gt;] (bus_for_each_dev+0x60/0x94) from [&lt;c02462c8&gt;] (bus_add_driver+0x1c0/0x24c)
[&lt;c02462c8&gt;] (bus_add_driver+0x1c0/0x24c) from [&lt;c02472d0&gt;] (driver_register+0x78/0x140)
[&lt;c02472d0&gt;] (driver_register+0x78/0x140) from [&lt;c00087c8&gt;] (do_one_initcall+0xf8/0x144)
[&lt;c00087c8&gt;] (do_one_initcall+0xf8/0x144) from [&lt;c05b29e8&gt;] (kernel_init_freeable+0x13c/0x1d8)
[&lt;c05b29e8&gt;] (kernel_init_freeable+0x13c/0x1d8) from [&lt;c041a108&gt;] (kernel_init+0xc/0x160)
[&lt;c041a108&gt;] (kernel_init+0xc/0x160) from [&lt;c000e2f8&gt;] (ret_from_fork+0x14/0x3c)
---[ end trace 4e0ec028b0028e02 ]---
s5p-g2d 12800000.g2d: Failed to register video device
s5p-g2d: probe of 12800000.g2d failed with error -22

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Cc: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Kamil Debski &lt;k.debski@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit 8a09a4cc9bd9389dc6a3b5b2dd3a7d64d2fab7e1 upstream.

Commit 1c1d86a1ea ("[media] v4l2: always require v4l2_dev,
rename parent to dev_parent") expects v4l2_dev to be always set.
It converted most of the drivers using the parent field of video_device
to v4l2_dev field. G2D driver did not set the parent field. Hence it got
left out. Without this patch we get the following boot warning and G2D
driver fails to register the video device.
WARNING: CPU: 0 PID: 1 at drivers/media/v4l2-core/v4l2-dev.c:775 __video_register_device+0xfc0/0x1028()
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.11.0-rc1-00001-g1c3e372-dirty #9
[&lt;c0014b7c&gt;] (unwind_backtrace+0x0/0xf4) from [&lt;c0011524&gt;] (show_stack+0x10/0x14)
[&lt;c0011524&gt;] (show_stack+0x10/0x14) from [&lt;c041d7a8&gt;] (dump_stack+0x7c/0xb0)
[&lt;c041d7a8&gt;] (dump_stack+0x7c/0xb0) from [&lt;c001dc94&gt;] (warn_slowpath_common+0x6c/0x88)
[&lt;c001dc94&gt;] (warn_slowpath_common+0x6c/0x88) from [&lt;c001dd4c&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001dd4c&gt;] (warn_slowpath_null+0x1c/0x24) from [&lt;c02cf8d4&gt;] (__video_register_device+0xfc0/0x1028)
[&lt;c02cf8d4&gt;] (__video_register_device+0xfc0/0x1028) from [&lt;c0311a94&gt;] (g2d_probe+0x1f8/0x398)
[&lt;c0311a94&gt;] (g2d_probe+0x1f8/0x398) from [&lt;c0247d54&gt;] (platform_drv_probe+0x14/0x18)
[&lt;c0247d54&gt;] (platform_drv_probe+0x14/0x18) from [&lt;c0246b10&gt;] (driver_probe_device+0x108/0x220)
[&lt;c0246b10&gt;] (driver_probe_device+0x108/0x220) from [&lt;c0246cf8&gt;] (__driver_attach+0x8c/0x90)
[&lt;c0246cf8&gt;] (__driver_attach+0x8c/0x90) from [&lt;c0245050&gt;] (bus_for_each_dev+0x60/0x94)
[&lt;c0245050&gt;] (bus_for_each_dev+0x60/0x94) from [&lt;c02462c8&gt;] (bus_add_driver+0x1c0/0x24c)
[&lt;c02462c8&gt;] (bus_add_driver+0x1c0/0x24c) from [&lt;c02472d0&gt;] (driver_register+0x78/0x140)
[&lt;c02472d0&gt;] (driver_register+0x78/0x140) from [&lt;c00087c8&gt;] (do_one_initcall+0xf8/0x144)
[&lt;c00087c8&gt;] (do_one_initcall+0xf8/0x144) from [&lt;c05b29e8&gt;] (kernel_init_freeable+0x13c/0x1d8)
[&lt;c05b29e8&gt;] (kernel_init_freeable+0x13c/0x1d8) from [&lt;c041a108&gt;] (kernel_init+0xc/0x160)
[&lt;c041a108&gt;] (kernel_init+0xc/0x160) from [&lt;c000e2f8&gt;] (ret_from_fork+0x14/0x3c)
---[ end trace 4e0ec028b0028e02 ]---
s5p-g2d 12800000.g2d: Failed to register video device
s5p-g2d: probe of 12800000.g2d failed with error -22

Signed-off-by: Sachin Kamat &lt;sachin.kamat@linaro.org&gt;
Cc: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Kamil Debski &lt;k.debski@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: exynos4-is: Fix entity unregistration on error path</title>
<updated>2013-09-27T00:18:17+00:00</updated>
<author>
<name>Sylwester Nawrocki</name>
<email>s.nawrocki@samsung.com</email>
</author>
<published>2013-07-29T09:53:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=cb6ecb39fe845251412e34e1d10bb6f4a3652f2f'/>
<id>cb6ecb39fe845251412e34e1d10bb6f4a3652f2f</id>
<content type='text'>
commit d2b903b4427e417a73863cef36ad0796ea6b7404 upstream.

This patch corrects media entities unregistration order to make sure
the fimc.N.capture and fimc-lite video nodes are unregistered with
fimc-&gt;lock mutex held. This prevents races between video device open()
and defered probing and NULL pointer dereference in open() callback
as follows:
[   77.645000] Unable to handle kernel NULL pointer dereference at virtual address 00000290t
[   77.655000] pgd = ee7a8000
[   77.660000] [00000290] *pgd=6e13c831, *pte=00000000, *ppte=00000000
[   77.665000] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[   77.670000] Modules linked in: s5p_fimc ipv6 exynos_fimc_is exynos_fimc_lite
 s5p_csis v4l2_mem2mem videobuf2_dma_contig videobuf2_memops exynos4_is_common videobuf2_core [last unloaded: s5p_fimc]
[   77.685000] CPU: 0 PID : 2998 Comm: v4l_id Tainted: G        W   3.10.0-next-20130709-00039-g39f491b-dirty #1548
[   77.695000] task: ee084000 ti: ee46e000 task.ti: ee46e000
[   77.700000] PC is at __mutex_lock_slowpath+0x54/0x368
[   77.705000] LR is at __mutex_lock_slowpath+0x24/0x368
[   77.710000] pc : [&lt;c038dc10&gt;]    lr : [&lt;c038dbe0&gt;]    psr: 60000093
[   77.710000] sp : ee46fd70  ip : 000008c8  fp : c054e34c
[   77.725000] r10: ee084000  r9 : 00000000  r8 : ee439480
[   77.730000] r7 : ee46e000  r6 : 60000013  r5 : 00000290  r4 : 0000028c
[   77.735000] r3 : 00000000  r2 : 00000000  r1 : 20000093  r0 : 00000001
[   77.740000] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM Segment user
[   77.750000] Control: 10c5387d  Table: 6e7a804a  DAC: 00000015
[   77.755000] Process v4l_id (pid: 2998, stack limit = 0xee46e238)
[   77.760000] Stack: (0xee46fd70 to 0xee470000)
    	       ...
[   77.935000] [&lt;c038dc10&gt;] (__mutex_lock_slowpath+0x54/0x368) from [&lt;c038df30&gt;] (mutex_lock+0xc/0x24)
[   77.945000] [&lt;c038df30&gt;] (mutex_lock+0xc/0x24) from [&lt;bf03fa90&gt;] (fimc_lite_open+0x12c/0x2bc [exynos_fimc_lite])
[   77.955000] [&lt;bf03fa90&gt;] (fimc_lite_open+0x12c/0x2bc [exynos_fimc_lite]) from [&lt;c02ab11c&gt;] (v4l2_open+0xa0/0xe0)
[   77.965000] [&lt;c02ab11c&gt;] (v4l2_open+0xa0/0xe0) from [&lt;c00b1de4&gt;] (chrdev_open+0x88/0x170)
[   77.975000] [&lt;c00b1de4&gt;] (chrdev_open+0x88/0x170) from [&lt;c00ac710&gt;] (do_dentry_open.isra.14+0x1d8/0x258)
[   77.985000] [&lt;c00ac710&gt;] (do_dentry_open.isra.14+0x1d8/0x258) from [&lt;c00ac860&gt;] (finish_open+0x20/0x38)
[   77.995000] [&lt;c00ac860&gt;] (finish_open+0x20/0x38) from [&lt;c00ba658&gt;] (do_last.isra.43+0x538/0xb1c)
[   78.000000] [&lt;c00ba658&gt;] (do_last.isra.43+0x538/0xb1c) from [&lt;c00bacf0&gt;] (path_openat+0xb4/0x5c4)
[   78.010000] [&lt;c00bacf0&gt;] (path_openat+0xb4/0x5c4) from [&lt;c00bb4b4&gt;] (do_filp_open+0x2c/0x80)
[   78.020000] [&lt;c00bb4b4&gt;] (do_filp_open+0x2c/0x80) from [&lt;c00ad744&gt;] (do_sys_open+0xf4/0x1a8)
[   78.025000] [&lt;c00ad744&gt;] (do_sys_open+0xf4/0x1a8) from [&lt;c000e320&gt;] (ret_fast_syscall+0x0/0x30)
[   78.035000] Code: 1a000093 e10f6000 f10c0080 e2845004 (e1953f9f)

Reported-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Signed-off-by: Kyungmin Park &lt;kyungmin.park@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit d2b903b4427e417a73863cef36ad0796ea6b7404 upstream.

This patch corrects media entities unregistration order to make sure
the fimc.N.capture and fimc-lite video nodes are unregistered with
fimc-&gt;lock mutex held. This prevents races between video device open()
and defered probing and NULL pointer dereference in open() callback
as follows:
[   77.645000] Unable to handle kernel NULL pointer dereference at virtual address 00000290t
[   77.655000] pgd = ee7a8000
[   77.660000] [00000290] *pgd=6e13c831, *pte=00000000, *ppte=00000000
[   77.665000] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[   77.670000] Modules linked in: s5p_fimc ipv6 exynos_fimc_is exynos_fimc_lite
 s5p_csis v4l2_mem2mem videobuf2_dma_contig videobuf2_memops exynos4_is_common videobuf2_core [last unloaded: s5p_fimc]
[   77.685000] CPU: 0 PID : 2998 Comm: v4l_id Tainted: G        W   3.10.0-next-20130709-00039-g39f491b-dirty #1548
[   77.695000] task: ee084000 ti: ee46e000 task.ti: ee46e000
[   77.700000] PC is at __mutex_lock_slowpath+0x54/0x368
[   77.705000] LR is at __mutex_lock_slowpath+0x24/0x368
[   77.710000] pc : [&lt;c038dc10&gt;]    lr : [&lt;c038dbe0&gt;]    psr: 60000093
[   77.710000] sp : ee46fd70  ip : 000008c8  fp : c054e34c
[   77.725000] r10: ee084000  r9 : 00000000  r8 : ee439480
[   77.730000] r7 : ee46e000  r6 : 60000013  r5 : 00000290  r4 : 0000028c
[   77.735000] r3 : 00000000  r2 : 00000000  r1 : 20000093  r0 : 00000001
[   77.740000] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM Segment user
[   77.750000] Control: 10c5387d  Table: 6e7a804a  DAC: 00000015
[   77.755000] Process v4l_id (pid: 2998, stack limit = 0xee46e238)
[   77.760000] Stack: (0xee46fd70 to 0xee470000)
    	       ...
[   77.935000] [&lt;c038dc10&gt;] (__mutex_lock_slowpath+0x54/0x368) from [&lt;c038df30&gt;] (mutex_lock+0xc/0x24)
[   77.945000] [&lt;c038df30&gt;] (mutex_lock+0xc/0x24) from [&lt;bf03fa90&gt;] (fimc_lite_open+0x12c/0x2bc [exynos_fimc_lite])
[   77.955000] [&lt;bf03fa90&gt;] (fimc_lite_open+0x12c/0x2bc [exynos_fimc_lite]) from [&lt;c02ab11c&gt;] (v4l2_open+0xa0/0xe0)
[   77.965000] [&lt;c02ab11c&gt;] (v4l2_open+0xa0/0xe0) from [&lt;c00b1de4&gt;] (chrdev_open+0x88/0x170)
[   77.975000] [&lt;c00b1de4&gt;] (chrdev_open+0x88/0x170) from [&lt;c00ac710&gt;] (do_dentry_open.isra.14+0x1d8/0x258)
[   77.985000] [&lt;c00ac710&gt;] (do_dentry_open.isra.14+0x1d8/0x258) from [&lt;c00ac860&gt;] (finish_open+0x20/0x38)
[   77.995000] [&lt;c00ac860&gt;] (finish_open+0x20/0x38) from [&lt;c00ba658&gt;] (do_last.isra.43+0x538/0xb1c)
[   78.000000] [&lt;c00ba658&gt;] (do_last.isra.43+0x538/0xb1c) from [&lt;c00bacf0&gt;] (path_openat+0xb4/0x5c4)
[   78.010000] [&lt;c00bacf0&gt;] (path_openat+0xb4/0x5c4) from [&lt;c00bb4b4&gt;] (do_filp_open+0x2c/0x80)
[   78.020000] [&lt;c00bb4b4&gt;] (do_filp_open+0x2c/0x80) from [&lt;c00ad744&gt;] (do_sys_open+0xf4/0x1a8)
[   78.025000] [&lt;c00ad744&gt;] (do_sys_open+0xf4/0x1a8) from [&lt;c000e320&gt;] (ret_fast_syscall+0x0/0x30)
[   78.035000] Code: 1a000093 e10f6000 f10c0080 e2845004 (e1953f9f)

Reported-by: Andrzej Hajda &lt;a.hajda@samsung.com&gt;
Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Signed-off-by: Kyungmin Park &lt;kyungmin.park@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>media: exynos-gsc: Register v4l2 device</title>
<updated>2013-09-27T00:18:17+00:00</updated>
<author>
<name>Arun Kumar K</name>
<email>arun.kk@samsung.com</email>
</author>
<published>2013-07-26T10:28:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=1d9d780fcd8df7c70312fdfe43ecc802b99b2e5c'/>
<id>1d9d780fcd8df7c70312fdfe43ecc802b99b2e5c</id>
<content type='text'>
commit d0b1c31349969973204fad21a076aecf131cc5e4 upstream.

Gscaler video device registration was happening without reference to
a parent v4l2_dev causing probe to fail. The patch creates a parent
v4l2 device and uses it for the gsc m2m video device registration.
This fixes regression introduced with comit commit 1c1d86a1ea07506
[media] v4l2: always require v4l2_dev, rename parent to dev_parent

Signed-off-by: Arun Kumar K &lt;arun.kk@samsung.com&gt;
Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit d0b1c31349969973204fad21a076aecf131cc5e4 upstream.

Gscaler video device registration was happening without reference to
a parent v4l2_dev causing probe to fail. The patch creates a parent
v4l2 device and uses it for the gsc m2m video device registration.
This fixes regression introduced with comit commit 1c1d86a1ea07506
[media] v4l2: always require v4l2_dev, rename parent to dev_parent

Signed-off-by: Arun Kumar K &lt;arun.kk@samsung.com&gt;
Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media</title>
<updated>2013-06-22T18:43:17+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2013-06-22T18:43:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=70a3067d55b31839720db1502eafd76f36a8c1af'/>
<id>70a3067d55b31839720db1502eafd76f36a8c1af</id>
<content type='text'>
Pull media fixes from Mauro Carvalho Chehab:
 "Another set of fixes for Kernel 3.10.

  This series contain:
   - two Kbuild fixes for randconfig
   - a buffer overflow when using rtl28xuu with r820t tuner
   - one clk fixup on exynos4-is driver"

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
  [media] Fix build when drivers are builtin and frontend modules
  [media] s5p makefiles: don't override other selections on obj-[ym]
  [media] exynos4-is: Fix FIMC-IS clocks initialization
  [media] rtl28xxu: fix buffer overflow when probing Rafael Micro r820t tuner
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull media fixes from Mauro Carvalho Chehab:
 "Another set of fixes for Kernel 3.10.

  This series contain:
   - two Kbuild fixes for randconfig
   - a buffer overflow when using rtl28xuu with r820t tuner
   - one clk fixup on exynos4-is driver"

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
  [media] Fix build when drivers are builtin and frontend modules
  [media] s5p makefiles: don't override other selections on obj-[ym]
  [media] exynos4-is: Fix FIMC-IS clocks initialization
  [media] rtl28xxu: fix buffer overflow when probing Rafael Micro r820t tuner
</pre>
</div>
</content>
</entry>
</feed>
