Commit 7186c149 authored by Du Cheng's avatar Du Cheng Committed by Zheng Zengkai
Browse files

drivers: video: fbcon: fix NULL dereference in fbcon_cursor()



stable inclusion
from stable-5.10.28
commit 61f0c3e8098facbec81dcc32508d58c8611cb799
bugzilla: 51779

--------------------------------

commit 01faae51 upstream.

add null-check on function pointer before dereference on ops->cursor

Reported-by: default avatar <syzbot+b67aaae8d3a927f68d20@syzkaller.appspotmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarDu Cheng <ducheng2@gmail.com>
Link: https://lore.kernel.org/r/20210312081421.452405-1-ducheng2@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 429ec1c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment