mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
drivers/note:Fix the crash issue when enabling trace dump
fix dereference of null pointer. Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
@@ -2118,7 +2118,7 @@ void note_get_taskname(pid_t pid, FAR char *buf, size_t len)
|
||||
|
||||
if (ti != NULL)
|
||||
{
|
||||
strlcpy(buf, tcb->name, len);
|
||||
strlcpy(buf, ti->name, len);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user