Skip to content
Commit 997403e7 authored by Xiaoke Wang's avatar Xiaoke Wang Committed by Helge Deller
Browse files

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



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: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 0714ea33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment