mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
Sashiko pointed that this sample code does not correctly handle the
failure of thread creation because kthread_run() can return -errno.
Check the simple_tsk_fn is correctly initialized (created) or not.
Link: https://lore.kernel.org/all/178165817322.269421.3992299509400184196.stgit@devnote2/
Link: https://sashiko.dev/#/patchset/178092865666.163648.10457567771536160909.stgit%40devnote2
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| trace_custom_sched.c | ||
| trace_custom_sched.h | ||
| trace-events-sample.c | ||
| trace-events-sample.h | ||