diff options
author | Xiaoke Wang <xkernel.wang@foxmail.com> | 2022-02-21 18:37:34 +0800 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2022-02-22 09:00:09 +0100 |
commit | 997403e7782a3b9aa6e2b28c6b78793659483af3 (patch) | |
tree | 351d7940175e31313afa6df7a4f2779f3af72b39 /tools/perf/scripts/python/exported-sql-viewer.py | |
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 <xkernel.wang@foxmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions