[PATCH] video: fbdev: via: check the return value of kstrdup()

2022-02-22 Thread xkernel . wang
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 +

Re: [PATCH] video: fbdev: via: check the return value of kstrdup()

2022-02-22 Thread Helge Deller
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