mount: don't call sd_device_get_property_value() with a NULL pointer
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 15 Nov 2023 12:46:09 +0000 (13:46 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 15 Nov 2023 12:46:09 +0000 (13:46 +0100)
commit6e07f600ba9204d9b01c401b21531ebdba15322e
tree03f2fc0c5a3dca28bd9a72a6409802f46bdc8d1c
parent17122c3de1c60080bfbb190253e3aee653247082
mount: don't call sd_device_get_property_value() with a NULL pointer

Otherwise bad thing would've happened is this was a hard assert:

+ systemd-mount --umount /dev/loop0
Assertion 'device' failed at src/libsystemd/sd-device/sd-device.c:2202, function sd_device_get_property_value(). Ignoring.
src/mount/mount-tool.c