power: Add callback parameter check 23/300923/1 accepted/tizen/unified/20231107.172855
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 6 Nov 2023 01:46:15 +0000 (10:46 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Mon, 6 Nov 2023 05:15:57 +0000 (14:15 +0900)
commit80374812948cd8cdbf1972db84402bf9fc9a75c2
tree048289e5fb2f5327e133bd76ef0e4c166fd15ae3
parent813a98c54af85705a6bb5cc150c769efc218b421
power: Add callback parameter check

When the callback parameter is null, it causes abnormal operation.
To avoid this, callback parameter check is necessary.

Change-Id: I5bfdf967ed5abea9563cbe070d8157b47d5ec7b0
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/power-internal.c