misc: tizen-inform-reboot: fix a potential NULL pointer dereference
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 16 Apr 2021 02:18:41 +0000 (11:18 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Thu, 3 Aug 2023 08:46:14 +0000 (17:46 +0900)
commitb68453c17052a25cc335e658c3be99b53b3e75a0
tree5e2f67496ceb7e264e2aa7531d150d0a9715637f
parentd66fa7466752e934375d51b08a6a9780f8a22dfa
misc: tizen-inform-reboot: fix a potential NULL pointer dereference

Fix a potential NULL pointer dereference.
If there is no file or directory, it has to check whether it's error or
not.

Change-Id: Ia6e7280c1901ae772a5f890c312b7a741fbac0a1
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/misc/tizen-inform-reboot.c