diff options
| author | Jiri Slaby <[email protected]> | 2022-06-07 12:49:43 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-06-10 13:37:03 +0200 |
| commit | a7e50de460d7d9230dc065c9d2f1a1b1669c675c (patch) | |
| tree | e53c9b8b96c196850ca65c06396db105dc7d09ab /include/linux/timerqueue.h | |
| parent | d8d0d1758c7d5ef37066f1122eb236d47b2948a9 (diff) | |
tty/vt: consolemap: change refcount only if needed in con_do_clear_unimap()
con_do_clear_unimap() currently decreases and increases refcount of old
dictionary in a back and forth fashion. This makes the code really hard
to follow. Decrease the refcount only if everything went well and we
really allocated a new one and decoupled from the old dictionary.
I sincerelly hope I did not make a mistake in this (ill) logic.
Reviewed-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Jiri Slaby <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions