diff options
| author | 2020-09-14 11:54:02 +0206 | |
|---|---|---|
| committer | 2020-09-15 14:23:37 +0200 | |
| commit | ce003d67ad521d950687bce7e42e5361022c7d3d (patch) | |
| tree | 0b131518cfd2868d2780a1ddb70f16c30c51d1ef /lib/math/git:/ssh: | |
| parent | scripts/gdb: update for lockless printk ringbuffer (diff) | |
| download | linux-dev-ce003d67ad521d950687bce7e42e5361022c7d3d.tar.xz linux-dev-ce003d67ad521d950687bce7e42e5361022c7d3d.zip | |
printk: ringbuffer: fix setting state in desc_read()
It is expected that desc_read() will always set at least the
@state_var field. However, if the descriptor is in an inconsistent
state, no fields are set.
Also, the second load of @state_var is not stored in @desc_out and
so might not match the state value that is returned.
Always set the last loaded @state_var into @desc_out, regardless of
the descriptor consistency.
Fixes: b6cf8b3f3312 ("printk: add lockless ringbuffer")
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200914094803.27365-1-john.ogness@linutronix.de
Diffstat (limited to 'lib/math/git:/ssh:')
0 files changed, 0 insertions, 0 deletions
