<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/sti, branch linux-5.4.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.4.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-06-04T12:32:31Z</updated>
<entry>
<title>media: c8sectpfe: Call of_node_put(i2c_bus) only once in c8sectpfe_probe()</title>
<updated>2025-06-04T12:32:31Z</updated>
<author>
<name>Markus Elfring</name>
</author>
<published>2024-10-04T13:50:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=33cc26204e3893f18bc8149046eaffcadeace0e4'/>
<id>urn:sha1:33cc26204e3893f18bc8149046eaffcadeace0e4</id>
<content type='text'>
[ Upstream commit b773530a34df0687020520015057075f8b7b4ac4 ]

An of_node_put(i2c_bus) call was immediately used after a pointer check
for an of_find_i2c_adapter_by_node() call in this function implementation.
Thus call such a function only once instead directly before the check.

This issue was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring &lt;elfring@users.sourceforge.net&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil@xs4all.nl&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: bdisp: Add missing check for create_workqueue</title>
<updated>2023-05-17T09:35:36Z</updated>
<author>
<name>Jiasheng Jiang</name>
</author>
<published>2023-02-08T07:14:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c6a315f0b14074ac89723f55b749a557dda0ae2b'/>
<id>urn:sha1:c6a315f0b14074ac89723f55b749a557dda0ae2b</id>
<content type='text'>
[ Upstream commit 2371adeab717d8fe32144a84f3491a03c5838cfb ]

Add the check for the return value of the create_workqueue
in order to avoid NULL pointer dereference.

Fixes: 28ffeebbb7bd ("[media] bdisp: 2D blitter driver using v4l2 mem2mem framework")
Signed-off-by: Jiasheng Jiang &lt;jiasheng@iscas.ac.cn&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: c8sectpfe: Add of_node_put() when breaking out of loop</title>
<updated>2023-01-18T10:41:12Z</updated>
<author>
<name>Liang He</name>
</author>
<published>2022-07-19T14:10:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6250bc73317a6a9cc87975359e5b1c47afbe9242'/>
<id>urn:sha1:6250bc73317a6a9cc87975359e5b1c47afbe9242</id>
<content type='text'>
[ Upstream commit 63ff05a1ad242a5a0f897921c87b70d601bda59c ]

In configure_channels(), we should call of_node_put() when breaking
out of for_each_child_of_node() which will automatically increase
and decrease the refcount.

Fixes: c5f5d0f99794 ("[media] c8sectpfe: STiH407/10 Linux DVB demux support")
Signed-off-by: Liang He &lt;windhl@126.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: st-delta: Fix PM disable depth imbalance in delta_probe</title>
<updated>2022-06-14T16:11:37Z</updated>
<author>
<name>Miaoqian Lin</name>
</author>
<published>2022-03-07T08:08:59Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b87d3a043b32b1dab5870beb19c0daa3da94e958'/>
<id>urn:sha1:b87d3a043b32b1dab5870beb19c0daa3da94e958</id>
<content type='text'>
[ Upstream commit 94e3dba710fe0afc772172305444250023fc2d30 ]

The pm_runtime_enable will decrease power disable depth.
If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable().

Fixes: f386509e4959 ("[media] st-delta: STiH4xx multi-format video decoder v4l2 driver")
Signed-off-by: Miaoqian Lin &lt;linmq006@gmail.com&gt;
Acked-by: Hugues Fruchet &lt;hugues.fruchet@foss.st.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: st-hva: Fix potential NULL pointer dereferences</title>
<updated>2021-07-14T14:53:12Z</updated>
<author>
<name>Evgeny Novikov</name>
</author>
<published>2021-05-19T12:04:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0a825797f791513d504c9c466c3b7270c7a911e1'/>
<id>urn:sha1:0a825797f791513d504c9c466c3b7270c7a911e1</id>
<content type='text'>
[ Upstream commit b7fdd208687ba59ebfb09b2199596471c63b69e3 ]

When ctx_id &gt;= HVA_MAX_INSTANCES in hva_hw_its_irq_thread() it tries to
access fields of ctx that is NULL at that point. The patch gets rid of
these accesses.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Evgeny Novikov &lt;novikov@ispras.ru&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: sti: fix obj-$(config) targets</title>
<updated>2021-07-14T14:53:11Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2021-05-18T09:26:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c8c5edb28f3e778bb4caeb32ed35e735970c2a9'/>
<id>urn:sha1:5c8c5edb28f3e778bb4caeb32ed35e735970c2a9</id>
<content type='text'>
[ Upstream commit 56c1f0876293888f686e31278d183d4af2cac3c3 ]

The right thing to do is to add a new object to the building
system when a certain config option is selected, and *not*
override them.

So, fix obj-$(config) logic at sti makefiles, using "+=",
instead of ":=".

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: sti/bdisp: fix pm_runtime_get_sync() usage count</title>
<updated>2021-07-14T14:53:10Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2021-04-23T15:19:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8fece55aeb6d2a7ed47e908b000b600e58d62b3b'/>
<id>urn:sha1:8fece55aeb6d2a7ed47e908b000b600e58d62b3b</id>
<content type='text'>
[ Upstream commit c44eac5b72e23c31eefc0e10a71d9650036b8341 ]

The pm_runtime_get_sync() internally increments the
dev-&gt;power.usage_count without decrementing it, even on errors.

The bdisp_start_streaming() doesn't take it into account, which
would unbalance PM usage counter at bdisp_stop_streaming().

The logic at bdisp_probe() is correct, but the best is to use
the same call along the driver.

So, replace it by the new pm_runtime_resume_and_get(), introduced by:
commit dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
in order to properly decrement the usage counter, avoiding
a potential PM usage counter leak.

Reviewed-by: Jonathan Cameron &lt;Jonathan.Cameron@huawei.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: platform: sti: Fix runtime PM imbalance in regs_show</title>
<updated>2021-05-11T12:04:11Z</updated>
<author>
<name>Dinghao Liu</name>
</author>
<published>2021-04-07T05:43:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4ca05c0e04d5ad791068eafc413681ba51478975'/>
<id>urn:sha1:4ca05c0e04d5ad791068eafc413681ba51478975</id>
<content type='text'>
[ Upstream commit 69306a947b3ae21e0d1cbfc9508f00fec86c7297 ]

pm_runtime_get_sync() will increase the runtime PM counter
even it returns an error. Thus a pairing decrement is needed
to prevent refcount leak. Fix this by replacing this API with
pm_runtime_resume_and_get(), which will not change the runtime
PM counter on error.

Signed-off-by: Dinghao Liu &lt;dinghao.liu@zju.edu.cn&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:58:02Z</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=ad3825eedb162667dcb795348137cf796f16f217'/>
<id>urn:sha1:ad3825eedb162667dcb795348137cf796f16f217</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: platform: sti: hva: Fix runtime PM imbalance on error</title>
<updated>2020-10-29T08:58:02Z</updated>
<author>
<name>Dinghao Liu</name>
</author>
<published>2020-05-21T10:05:02Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e1285a73c5fad15d92ecabfb0e082c17707ccbb4'/>
<id>urn:sha1:e1285a73c5fad15d92ecabfb0e082c17707ccbb4</id>
<content type='text'>
[ Upstream commit d912a1d9e9afe69c6066c1ceb6bfc09063074075 ]

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;
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>
