diff options
author | Xiaoke Wang <[email protected]> | 2022-02-21 18:37:34 +0800 |
---|---|---|
committer | Helge Deller <[email protected]> | 2022-02-22 09:00:09 +0100 |
commit | 997403e7782a3b9aa6e2b28c6b78793659483af3 (patch) | |
tree | 351d7940175e31313afa6df7a4f2779f3af72b39 /lib/test_overflow.c | |
parent | 0714ea330b998d94dc26834c113716563fab7f17 (diff) |
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: Xiaoke Wang <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions