power: Add callback parameter check 20/300920/1 accepted/tizen/8.0/unified/20231109.181654
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:13:24 +0000 (14:13 +0900)
commit20d0b1c2935e289dd95c653ddd4a3d652b058b5b
tree048289e5fb2f5327e133bd76ef0e4c166fd15ae3
parentb3e98c656725604ec1d8dff5f06e1d96c07325b7
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