kernel: Add an error handler to check null pointer 04/317704/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20250108.155923
authorUnsung Lee <unsung.lee@samsung.com>
Tue, 7 Jan 2025 02:32:43 +0000 (11:32 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Tue, 7 Jan 2025 02:33:39 +0000 (11:33 +0900)
commite2f05e9ec5f830b13c3516e92087397807eae945
tree8f485bc6d68e763181a3e3d6b367c129ece97bee
parentd83f6843a185e6ea5bf83a33941e03b9f7793bbc
kernel: Add an error handler to check null pointer

Add an error handler of nl_cb_alloc() to check whether the return value
is null or not. This is because nl_cb_get() does not check input argument.
Therefore, null argument of nl_cb_get() can cause segmentation fault.

Change-Id: I5379ef01fcf25e967235eadb6caa200dfc8b166f
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/util/kernel.c