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>
Mon, 7 Feb 2022 08:01:41 +0000 (17:01 +0900)
commit9df204efb660230548820c1357a0f790598e6b2d
tree31c657c99cf9eb27cc4dadf53748532cb7f1f36f
parent03224374f5751da8d5de655cc85bf9f715c5df76
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