]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/udev/udev-event.c
udev-event: check whether device has devnum before calling udev_node_remove()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Oct 2018 03:38:40 +0000 (12:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 31 Oct 2018 00:29:51 +0000 (09:29 +0900)
commitd4a95a952e47d6ab959694114eccc838a0b31529
treed1fa0b451b7e4ca07cdc2ebff1a64312f9a48703
parent5061dfa850abc3d76b86d606f8ddb304a773be25
udev-event: check whether device has devnum before calling udev_node_remove()

This fixes a bug in 'remove' event handling, which was introduced by
eb1f9e30ec603ab34631cc3adba1def49485b505, as 'devnum' variable may
not be initialized.
src/udev/udev-event.c