<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform, branch linux-4.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-11-26T10:58:37Z</updated>
<entry>
<title>media: s5p-mfc: fix possible null-pointer dereference in s5p_mfc_probe()</title>
<updated>2021-11-26T10:58:37Z</updated>
<author>
<name>Tuo Li</name>
</author>
<published>2021-08-05T07:55:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f7cf9bc3f6bc1d23a7d0f37cc8e325e0baf0c83'/>
<id>urn:sha1:5f7cf9bc3f6bc1d23a7d0f37cc8e325e0baf0c83</id>
<content type='text'>
[ Upstream commit 8515965e5e33f4feb56134348c95953f3eadfb26 ]

The variable pdev is assigned to dev-&gt;plat_dev, and dev-&gt;plat_dev is
checked in:
  if (!dev-&gt;plat_dev)

This indicates both dev-&gt;plat_dev and pdev can be NULL. If so, the
function dev_err() is called to print error information.
  dev_err(&amp;pdev-&gt;dev, "No platform data specified\n");

However, &amp;pdev-&gt;dev is an illegal address, and it is dereferenced in
dev_err().

To fix this possible null-pointer dereference, replace dev_err() with
mfc_err().

Reported-by: TOTE Robot &lt;oslab@tsinghua.edu.cn&gt;
Signed-off-by: Tuo Li &lt;islituo@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: s5p-g2d: Fix a memory leak on ctx-&gt;fh.m2m_ctx</title>
<updated>2021-07-20T14:22:34Z</updated>
<author>
<name>Dillon Min</name>
</author>
<published>2021-05-26T15:18:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7c6be39cdb0ed7ba2376e1c509d17553a13e3bca'/>
<id>urn:sha1:7c6be39cdb0ed7ba2376e1c509d17553a13e3bca</id>
<content type='text'>
[ Upstream commit 5d11e6aad1811ea293ee2996cec9124f7fccb661 ]

The m2m_ctx resources was allocated by v4l2_m2m_ctx_init() in g2d_open()
should be freed from g2d_release() when it's not used.

Fix it

Fixes: 918847341af0 ("[media] v4l: add G2D driver for s5p device family")
Signed-off-by: Dillon Min &lt;dillon.minfei@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vivid: fix assignment of dev-&gt;fbuf_out_flags</title>
<updated>2021-05-22T08:38:23Z</updated>
<author>
<name>Colin Ian King</name>
</author>
<published>2021-02-25T15:43:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ad7534152d68aae7e18108947465bc8ce15872c'/>
<id>urn:sha1:6ad7534152d68aae7e18108947465bc8ce15872c</id>
<content type='text'>
[ Upstream commit 5cde22fcc7271812a7944c47b40100df15908358 ]

Currently the chroma_flags and alpha_flags are being zero'd with a bit-wise
mask and the following statement should be bit-wise or'ing in the new flag
bits but instead is making a direct assignment.  Fix this by using the |=
operator rather than an assignment.

Addresses-Coverity: ("Unused value")

Fixes: ef834f7836ec ("[media] vivid: add the video capture and output parts")
Signed-off-by: Colin Ian King &lt;colin.king@canonical.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: bdisp: Fix runtime PM imbalance on error</title>
<updated>2020-10-29T08:03:08Z</updated>
<author>
<name>Dinghao Liu</name>
</author>
<published>2020-05-21T10:00:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e0bf93c45083334bcd64f99dc62df528e4547354'/>
<id>urn:sha1:e0bf93c45083334bcd64f99dc62df528e4547354</id>
<content type='text'>
[ Upstream commit dbd2f2dc025f9be8ae063e4f270099677238f620 ]

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.

Signed-off-by: Dinghao Liu &lt;dinghao.liu@zju.edu.cn&gt;
Reviewed-by: Fabien Dessenne &lt;fabien.dessenne@st.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: exynos4-is: Fix a reference count leak</title>
<updated>2020-10-29T08:03:08Z</updated>
<author>
<name>Qiushi Wu</name>
</author>
<published>2020-06-14T03:01:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=144e4b3bc1a2f393ae21ce64b077171ef29d296c'/>
<id>urn:sha1:144e4b3bc1a2f393ae21ce64b077171ef29d296c</id>
<content type='text'>
[ Upstream commit 64157b2cb1940449e7df2670e85781c690266588 ]

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code, causing incorrect ref count if
pm_runtime_put_noidle() is not called in error handling paths.
Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails.

Signed-off-by: Qiushi Wu &lt;wu000273@umn.edu&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: exynos4-is: Fix a reference count leak due to pm_runtime_get_sync</title>
<updated>2020-10-29T08:03:08Z</updated>
<author>
<name>Qiushi Wu</name>
</author>
<published>2020-06-14T03:10:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f3a48529951761916358d8ed924117bfb6fd223c'/>
<id>urn:sha1:f3a48529951761916358d8ed924117bfb6fd223c</id>
<content type='text'>
[ Upstream commit c47f7c779ef0458a58583f00c9ed71b7f5a4d0a2 ]

On calling pm_runtime_get_sync() the reference count of the device
is incremented. In case of failure, decrement the
reference count before returning the error.

Signed-off-by: Qiushi Wu &lt;wu000273@umn.edu&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: exynos4-is: Fix several reference count leaks due to pm_runtime_get_sync</title>
<updated>2020-10-29T08:03:08Z</updated>
<author>
<name>Qiushi Wu</name>
</author>
<published>2020-06-14T03:18:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2306e29e8813b3726a244aed91942487a3d1c0b8'/>
<id>urn:sha1:2306e29e8813b3726a244aed91942487a3d1c0b8</id>
<content type='text'>
[ Upstream commit 7ef64ceea0008c17e94a8a2c60c5d6d46f481996 ]

On calling pm_runtime_get_sync() the reference count of the device
is incremented. In case of failure, decrement the
reference count before returning the error.

Signed-off-by: Qiushi Wu &lt;wu000273@umn.edu&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: ti-vpe: Fix a missing check and reference count leak</title>
<updated>2020-10-29T08:03:02Z</updated>
<author>
<name>Qiushi Wu</name>
</author>
<published>2020-06-14T02:56:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0d35b8ae3006001f4fc260f87a1dcd81ce5f9c1c'/>
<id>urn:sha1:0d35b8ae3006001f4fc260f87a1dcd81ce5f9c1c</id>
<content type='text'>
[ Upstream commit 7dae2aaaf432767ca7aa11fa84643a7c2600dbdd ]

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code, causing incorrect ref count if
pm_runtime_put_noidle() is not called in error handling paths.
And also, when the call of function vpe_runtime_get() failed,
we won't call vpe_runtime_put().
Thus call pm_runtime_put_noidle() if pm_runtime_get_sync() fails
inside vpe_runtime_get().

Fixes: 4571912743ac ("[media] v4l: ti-vpe: Add VPE mem to mem driver")
Signed-off-by: Qiushi Wu &lt;wu000273@umn.edu&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: omap3isp: Fix memleak in isp_probe</title>
<updated>2020-10-29T08:03:02Z</updated>
<author>
<name>Dinghao Liu</name>
</author>
<published>2020-08-24T06:53:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=52f39ca0467cbf62bf19b65148d180e9c5aadaf6'/>
<id>urn:sha1:52f39ca0467cbf62bf19b65148d180e9c5aadaf6</id>
<content type='text'>
[ Upstream commit d8fc21c17099635e8ebd986d042be65a6c6b5bd0 ]

When devm_ioremap_resource() fails, isp should be
freed just like other error paths in isp_probe.

Fixes: 8644cdf972dd6 ("[media] omap3isp: Replace many MMIO regions by two")
Signed-off-by: Dinghao Liu &lt;dinghao.liu@zju.edu.cn&gt;
Signed-off-by: Sakari Ailus &lt;sakari.ailus@linux.intel.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: Revert "media: exynos4-is: Add missed check for pinctrl_lookup_state()"</title>
<updated>2020-10-29T08:03:02Z</updated>
<author>
<name>Sylwester Nawrocki</name>
</author>
<published>2020-08-10T15:32:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f6af2c161ba4f21d5ec7f7a8fdaf162625763ac1'/>
<id>urn:sha1:f6af2c161ba4f21d5ec7f7a8fdaf162625763ac1</id>
<content type='text'>
[ Upstream commit 00d21f325d58567d81d9172096692d0a9ea7f725 ]

The "idle" pinctrl state is optional as documented in the DT binding.
The change introduced by the commit being reverted makes that pinctrl state
mandatory and breaks initialization of the whole media driver, since the
"idle" state is not specified in any mainline dts.

This reverts commit 18ffec750578 ("media: exynos4-is: Add missed check for pinctrl_lookup_state()")
to fix the regression.

Fixes: 18ffec750578 ("media: exynos4-is: Add missed check for pinctrl_lookup_state()")
Signed-off-by: Sylwester Nawrocki &lt;s.nawrocki@samsung.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+huawei@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
</feed>
