Heinrich Toews e7771f5d84 leds: rgb: wago-m4: fix rpdev NULL-ptr race in rpmsg_remove
wago_rpmsg_remove() cleared priv->rpdev without holding send_lock.
wago_send() checks priv->rpdev under send_lock, but a concurrent
remove could null the pointer between the check and the subsequent
rpmsg_trysend(priv->rpdev->ept, ...) dereference, causing a NULL
pointer fault.

Hold send_lock around the priv->rpdev = NULL assignment so that any
in-flight wago_send() either sees a valid pointer for its entire
critical section or sees NULL from the outset.

Reported-by: Oleg Karfich <oleg.karfich@wago.com>
Signed-off-by: Heinrich Toews <ht@twx-software.de>
2026-06-18 18:13:10 +02:00
2025-06-20 09:56:35 -05:00
2025-06-20 10:23:09 -05:00
2025-06-19 15:28:47 +02:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
S
Description
TWx Linux Repository
Readme 6.1 GiB
Languages
C 97.6%
Assembly 1%
Shell 0.5%
Python 0.3%
Makefile 0.3%