block: Check return value of udev_device_get_syspath() 34/297934/1 accepted/tizen/7.0/unified/20230830.171819
authorUnsung Lee <unsung.lee@samsung.com>
Tue, 29 Aug 2023 02:33:50 +0000 (11:33 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Tue, 29 Aug 2023 02:36:24 +0000 (11:36 +0900)
commit59d164a5a715f1fce54be3a43cea6b6f5873ccb2
treefa6c235bfd6015b19359f5be2db095d130a99049
parent5e863846a9db96b7ab7d399e48f2ebae41dd692c
block: Check return value of udev_device_get_syspath()

Check return value of udev_device_get_syspath() to avoid
passing NULL parameter in rindex() function.

This solves bug reported by SVACE with WGID 540346.

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