<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/drivers/staging/most, branch v7.2-rc2</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>staging: most: video: avoid double free on video register failure</title>
<updated>2026-05-21T10:42:38+00:00</updated>
<author>
<name>Guangshuo Li</name>
<email>lgs201920130244@gmail.com</email>
</author>
<published>2026-05-17T11:12:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=7cb1c5b32a2bfde961fff8d5204526b609bcb30a'/>
<id>7cb1c5b32a2bfde961fff8d5204526b609bcb30a</id>
<content type='text'>
comp_register_videodev() allocates a video_device with
video_device_alloc() and releases it if video_register_device() fails.

This can double free the video_device when __video_register_device()
reaches device_register() and that call fails:

  video_register_device()
    -&gt; __video_register_device()
       -&gt; device_register() fails
          -&gt; put_device(&amp;vdev-&gt;dev)
             -&gt; v4l2_device_release()
                -&gt; vdev-&gt;release(vdev)
                   -&gt; video_device_release(vdev)

  comp_register_videodev()
    -&gt; video_device_release(mdev-&gt;vdev)

Use video_device_release_empty() while registering the device so that
registration failure paths do not free mdev-&gt;vdev through vdev-&gt;release().
comp_register_videodev() then releases mdev-&gt;vdev exactly once on failure.
Restore video_device_release() after successful registration so the
registered device keeps its normal lifetime handling.

This issue was found by a static analysis tool I am developing.

Fixes: eab231c0398a ("staging: most: v4l2-aim: remove unnecessary label err_vbi_dev")
Signed-off-by: Guangshuo Li &lt;lgs201920130244@gmail.com&gt;
Link: https://patch.msgid.link/20260517111218.945796-1-lgs201920130244@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
comp_register_videodev() allocates a video_device with
video_device_alloc() and releases it if video_register_device() fails.

This can double free the video_device when __video_register_device()
reaches device_register() and that call fails:

  video_register_device()
    -&gt; __video_register_device()
       -&gt; device_register() fails
          -&gt; put_device(&amp;vdev-&gt;dev)
             -&gt; v4l2_device_release()
                -&gt; vdev-&gt;release(vdev)
                   -&gt; video_device_release(vdev)

  comp_register_videodev()
    -&gt; video_device_release(mdev-&gt;vdev)

Use video_device_release_empty() while registering the device so that
registration failure paths do not free mdev-&gt;vdev through vdev-&gt;release().
comp_register_videodev() then releases mdev-&gt;vdev exactly once on failure.
Restore video_device_release() after successful registration so the
registered device keeps its normal lifetime handling.

This issue was found by a static analysis tool I am developing.

Fixes: eab231c0398a ("staging: most: v4l2-aim: remove unnecessary label err_vbi_dev")
Signed-off-by: Guangshuo Li &lt;lgs201920130244@gmail.com&gt;
Link: https://patch.msgid.link/20260517111218.945796-1-lgs201920130244@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most: net: replace pr_err with netdev_err</title>
<updated>2026-05-11T07:58:02+00:00</updated>
<author>
<name>Maha Maryam Javaid</name>
<email>mahamaryamjavaid@gmail.com</email>
</author>
<published>2026-05-08T06:04:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=a5b28f0d8f7c323d3e2184599f438f01af3308a8'/>
<id>a5b28f0d8f7c323d3e2184599f438f01af3308a8</id>
<content type='text'>
Replace remaining pr_err() calls with netdev_err() where a net device
is available to provide better context in error messages.

Lines in skb_to_mep() are left as pr_err() since no net device
context is available there.

Signed-off-by: Maha Maryam Javaid &lt;mahamaryamjavaid@gmail.com&gt;
Link: https://patch.msgid.link/20260508060438.20156-1-mahamaryamjavaid@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace remaining pr_err() calls with netdev_err() where a net device
is available to provide better context in error messages.

Lines in skb_to_mep() are left as pr_err() since no net device
context is available there.

Signed-off-by: Maha Maryam Javaid &lt;mahamaryamjavaid@gmail.com&gt;
Link: https://patch.msgid.link/20260508060438.20156-1-mahamaryamjavaid@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most: dim2: remove filename from comment blocks</title>
<updated>2026-05-04T14:17:58+00:00</updated>
<author>
<name>Shyam Sunder Reddy Padira</name>
<email>shyamsunderreddypadira@gmail.com</email>
</author>
<published>2026-05-03T10:44:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=4776aefb5aa5c2c5250597b95ab8d490e6b783cf'/>
<id>4776aefb5aa5c2c5250597b95ab8d490e6b783cf</id>
<content type='text'>
Remove redundant filename references from top-of-file
comment blocks across dim2 source files to resolve
checkpatch.pl warnings.

The filename is already implied by the file path and
including it in comments can become outdated.

No functional changes.

Signed-off-by: Shyam Sunder Reddy Padira &lt;shyamsunderreddypadira@gmail.com&gt;
Link: https://patch.msgid.link/20260503104447.64657-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove redundant filename references from top-of-file
comment blocks across dim2 source files to resolve
checkpatch.pl warnings.

The filename is already implied by the file path and
including it in comments can become outdated.

No functional changes.

Signed-off-by: Shyam Sunder Reddy Padira &lt;shyamsunderreddypadira@gmail.com&gt;
Link: https://patch.msgid.link/20260503104447.64657-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most: video: remove filename from the top-of-file comment</title>
<updated>2026-05-04T14:17:21+00:00</updated>
<author>
<name>Shyam Sunder Reddy Padira</name>
<email>shyamsunderreddypadira@gmail.com</email>
</author>
<published>2026-04-27T17:56:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=b6c1f5d3ff6bbfc32cfff2e8792e98f0b57ac9e1'/>
<id>b6c1f5d3ff6bbfc32cfff2e8792e98f0b57ac9e1</id>
<content type='text'>
Remove the filename reference from top-of-file comment,
to resolve checkpatch.pl warning. The filename can become
outdated if the file is renamed.

No functional change.

Signed-off-by: Shyam Sunder Reddy Padira &lt;shyamsunderreddypadira@gmail.com&gt;
Link: https://patch.msgid.link/20260427175636.4605-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the filename reference from top-of-file comment,
to resolve checkpatch.pl warning. The filename can become
outdated if the file is renamed.

No functional change.

Signed-off-by: Shyam Sunder Reddy Padira &lt;shyamsunderreddypadira@gmail.com&gt;
Link: https://patch.msgid.link/20260427175636.4605-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most: video: remove redundant cleanup in comp_exit()</title>
<updated>2026-04-27T11:01:51+00:00</updated>
<author>
<name>Gabriel Rondon</name>
<email>grondon@gmail.com</email>
</author>
<published>2026-04-12T22:23:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=467716c1cc19bc7172b7ac23a1d8bf791f5c0c6b'/>
<id>467716c1cc19bc7172b7ac23a1d8bf791f5c0c6b</id>
<content type='text'>
most_deregister_component() already calls disconnect_channel() for
every linked channel via bus_for_each_dev() in core.c, which invokes
comp_disconnect_channel() to remove each entry from the video_devices
list and tear down the V4L2 device.

The manual cleanup loop in comp_exit() duplicates this work and is
guarded by a stale comment claiming that "mostcore currently doesn't
call disconnect_channel() for linked channels" — but the core has
since been fixed to do exactly that.

Remove the redundant manual cleanup loop, the outdated comment, and
the BUG_ON() assertion that checked for a condition that can no longer
occur.

Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Link: https://patch.msgid.link/20260412222318.65045-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
most_deregister_component() already calls disconnect_channel() for
every linked channel via bus_for_each_dev() in core.c, which invokes
comp_disconnect_channel() to remove each entry from the video_devices
list and tear down the V4L2 device.

The manual cleanup loop in comp_exit() duplicates this work and is
guarded by a stale comment claiming that "mostcore currently doesn't
call disconnect_channel() for linked channels" — but the core has
since been fixed to do exactly that.

Remove the redundant manual cleanup loop, the outdated comment, and
the BUG_ON() assertion that checked for a condition that can no longer
occur.

Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Link: https://patch.msgid.link/20260412222318.65045-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most: net: remove filename from top-of-file comment</title>
<updated>2026-04-27T11:01:51+00:00</updated>
<author>
<name>Shyam Sunder Reddy Padira</name>
<email>shyamsunderreddypadira@gmail.com</email>
</author>
<published>2026-04-11T09:51:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=57b5b1f45057caf56d8f501a9a68fca5a08fc6d5'/>
<id>57b5b1f45057caf56d8f501a9a68fca5a08fc6d5</id>
<content type='text'>
Remove the filename reference from the
top-of-file comment block, to resolve a
checkpatch.pl warning. The filename comment is
not useful and can become outdated if the file is
renamed.

No functional changes.

Signed-off-by: Shyam Sunder Reddy Padira &lt;shyamsunderreddypadira@gmail.com&gt;
Link: https://patch.msgid.link/20260411095255.4890-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the filename reference from the
top-of-file comment block, to resolve a
checkpatch.pl warning. The filename comment is
not useful and can become outdated if the file is
renamed.

No functional changes.

Signed-off-by: Shyam Sunder Reddy Padira &lt;shyamsunderreddypadira@gmail.com&gt;
Link: https://patch.msgid.link/20260411095255.4890-1-shyamsunderreddypadira@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most/net: remove dead code from skb_to_mamac() and skb_to_mep()</title>
<updated>2026-04-27T11:01:51+00:00</updated>
<author>
<name>Hadi Chokr</name>
<email>hadichokr@icloud.com</email>
</author>
<published>2026-04-01T12:57:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=62cf6eb023a89dee27e2413c5a503468e07e0f4a'/>
<id>62cf6eb023a89dee27e2413c5a503468e07e0f4a</id>
<content type='text'>
The overflow checks in skb_to_mamac() and skb_to_mep() are always false:

  mdp_len = (skb-&gt;len - ETH_HLEN) + MDP_HDR_LEN = skb-&gt;len + 2
  mep_len = skb-&gt;len + MEP_HDR_LEN = skb-&gt;len + 8

Remove these checks to clean up the code.

Signed-off-by: Hadi Chokr &lt;hadichokr@icloud.com&gt;
Link: https://patch.msgid.link/20260401125711.80822-1-hadichokr@icloud.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The overflow checks in skb_to_mamac() and skb_to_mep() are always false:

  mdp_len = (skb-&gt;len - ETH_HLEN) + MDP_HDR_LEN = skb-&gt;len + 2
  mep_len = skb-&gt;len + MEP_HDR_LEN = skb-&gt;len + 8

Remove these checks to clean up the code.

Signed-off-by: Hadi Chokr &lt;hadichokr@icloud.com&gt;
Link: https://patch.msgid.link/20260401125711.80822-1-hadichokr@icloud.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most: dim2: remove unnecessary NULL check in try_start_dim_transfer()</title>
<updated>2026-04-27T11:01:51+00:00</updated>
<author>
<name>Gabriel Rondon</name>
<email>grondon@gmail.com</email>
</author>
<published>2026-04-01T10:10:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=fde67f5b1fc77f3c6701b31751643c11526927bc'/>
<id>fde67f5b1fc77f3c6701b31751643c11526927bc</id>
<content type='text'>
Remove the !hdm_ch check. Although hdm_ch is a function parameter,
it is already dereferenced on the preceding line to initialize
head (head = &amp;hdm_ch-&gt;pending_list), so a NULL check after that
point is dead code.

Reported-by: Dan Carpenter &lt;error27@gmail.com&gt;
Closes: https://lore.kernel.org/all/acwjEHyEYg0V3OyC@stanley.mountain
Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Link: https://patch.msgid.link/20260401101038.24304-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the !hdm_ch check. Although hdm_ch is a function parameter,
it is already dereferenced on the preceding line to initialize
head (head = &amp;hdm_ch-&gt;pending_list), so a NULL check after that
point is dead code.

Reported-by: Dan Carpenter &lt;error27@gmail.com&gt;
Closes: https://lore.kernel.org/all/acwjEHyEYg0V3OyC@stanley.mountain
Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Link: https://patch.msgid.link/20260401101038.24304-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most: dim2: remove unnecessary NULL check in service_done_flag()</title>
<updated>2026-04-27T11:01:51+00:00</updated>
<author>
<name>Gabriel Rondon</name>
<email>grondon@gmail.com</email>
</author>
<published>2026-03-31T16:44:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=6aa2b11ce527c23e6a472204ee74fdf4a7411231'/>
<id>6aa2b11ce527c23e6a472204ee74fdf4a7411231</id>
<content type='text'>
Remove the !hdm_ch check. hdm_ch is derived from dev-&gt;hch + ch_idx
(pointer arithmetic on a struct member), so it can never be NULL.
Keep only the !hdm_ch-&gt;is_initialized check.

Reported-by: Dan Carpenter &lt;error27@gmail.com&gt;
Closes: https://lore.kernel.org/all/acuoL4DRi0pmsQY1@stanley.mountain
Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Link: https://patch.msgid.link/20260331164443.47682-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the !hdm_ch check. hdm_ch is derived from dev-&gt;hch + ch_idx
(pointer arithmetic on a struct member), so it can never be NULL.
Keep only the !hdm_ch-&gt;is_initialized check.

Reported-by: Dan Carpenter &lt;error27@gmail.com&gt;
Closes: https://lore.kernel.org/all/acuoL4DRi0pmsQY1@stanley.mountain
Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Link: https://patch.msgid.link/20260331164443.47682-1-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>staging: most: dim2: replace BUG_ON() in poison_channel()</title>
<updated>2026-03-31T08:46:39+00:00</updated>
<author>
<name>Gabriel Rondon</name>
<email>grondon@gmail.com</email>
</author>
<published>2026-03-30T18:22:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=e87946666e47d4b6f615e9ba0075375493194810'/>
<id>e87946666e47d4b6f615e9ba0075375493194810</id>
<content type='text'>
Replace BUG_ON() range check on ch_idx with a return of -EINVAL.

BUG_ON() is deprecated as it crashes the entire kernel on assertion
failure (see Documentation/process/deprecated.rst).

Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Link: https://patch.msgid.link/20260330182255.75241-6-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace BUG_ON() range check on ch_idx with a return of -EINVAL.

BUG_ON() is deprecated as it crashes the entire kernel on assertion
failure (see Documentation/process/deprecated.rst).

Signed-off-by: Gabriel Rondon &lt;grondon@gmail.com&gt;
Link: https://patch.msgid.link/20260330182255.75241-6-grondon@gmail.com
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
