summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYao Yiqi <yaoyiqi3@huawei.com>2026-10-19 17:43:31 +0800
committerHelge Deller <deller@gmx.de>2026-10-20 22:29:20 +0200
commit7935db1a4a0f83a63590a222500e5016e2f6c85e (patch)
tree6ad12b6ea70aa22ecb2dbbca358dd35017aff9bd /tools/perf/scripts/python
parente4b6b865d45d8dafb6c6f28c8a993a5b4431d25a (diff)
downloadlwn-7935db1a4a0f83a63590a222500e5016e2f6c85e.tar.gz
lwn-7935db1a4a0f83a63590a222500e5016e2f6c85e.zip
fbcon: Retry rotated font allocation after failure
fbcon_rotate_font() records the font, its geometry and the rotation in par->rotated before calling font_data_rotate(). If the allocation fails, the error path clears par->rotated.buf, but the recorded key already looks up to date, so the next call takes the early-out and never retries. The rotated putcs/cursor ops keep returning early on the NULL buffer, and the console stays blank even after memory is available again. Also test par->rotated.buf in the early-out, so a failed allocation is retried on the next call: at the next fbcon_switch(), fbcon_modechanged() or font change. Fixes: e4ef723d8975 ("fbcon: Avoid OOB font access if console rotation fails") Cc: stable@vger.kernel.org Signed-off-by: Yao Yiqi <yaoyiqi3@huawei.com> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions