From: Xiaoke Wang
kstrdup() is a memory allocation function which can return NULL when
some internal memory errors happen. It is better to check the return
value of it to catch the error in time during the setup of viafb.
Signed-off-by: Xiaoke Wang
---
drivers/video/fbdev/via/viafbdev.c | 10 +
On 2/21/22 11:37, xkernel.w...@foxmail.com wrote:
> From: Xiaoke Wang
>
> kstrdup() is a memory allocation function which can return NULL when
> some internal memory errors happen. It is better to check the return
> value of it to catch the error in time during the setup of viafb.
>
> Signed-off-b