diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2025-10-07 12:39:52 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-13 12:06:18 +0300 |
| commit | 99559e5bb4c6795824b6531ad61519c1d9500079 (patch) | |
| tree | 5bbc0401f343d0df1f1101d2b97ae33f6341242f /lib/mpi/mpi-mpow.c | |
| parent | bfe144da06b002cccf314769c45ecccb69501c48 (diff) | |
| download | linux-99559e5bb4c6795824b6531ad61519c1d9500079.tar.xz | |
rust_binder: don't delete FreezeListener if there are pending duplicates
When userspace issues commands to a freeze listener, it identifies it
using a cookie. Normally this cookie uniquely identifies a freeze
listener, but when userspace clears a listener with the intent of
deleting it, it's allowed to "regret" clearing it and create a new
freeze listener for the same node using the same cookie. (IMO this was
an API mistake, but userspace relies on it.)
Currently if the active freeze listener gets fully deleted while there
are still pending duplicates, then the code incorrectly deletes the
pending duplicates too. To fix this, do not delete the entry if there
are still pending duplicates.
Since the current data structure requires a main freeze listener, we
convert one pending duplicate into the primary listener in this
scenario.
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Carlos Llamas <cmllamas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpi-mpow.c')
0 files changed, 0 insertions, 0 deletions
