diff options
| author | Li Jun <lijun01@kylinos.cn> | 2026-06-02 18:31:20 +0800 |
|---|---|---|
| committer | Georgi Djakov <djakov@kernel.org> | 2026-07-22 12:36:47 +0300 |
| commit | ecf20a5e15f9c81a97b1249c979b9c439e777592 (patch) | |
| tree | 13acfaa0e466c2fb7f0e874220860f37a846c318 /include/linux/workqueue_api.h | |
| parent | bd8a131fbe4989b8e57aa74fdc974900460ac387 (diff) | |
interconnect: debugfs-client: add NULL check for platform_device_alloc
platform_device_alloc() may return NULL when memory allocation fails.
Add proper error handling to prevent a potential NULL pointer
dereference when calling platform_device_add() with a NULL pointer.
Signed-off-by: Li Jun <lijun01@kylinos.cn>
Link: https://patch.msgid.link/20260602103120.2966458-1-lijun01@kylinos.cn
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
