udev: "handle" oom in path_id
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 Nov 2017 09:32:45 +0000 (10:32 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 Nov 2017 09:34:47 +0000 (10:34 +0100)
commita6856129ec0b72c15788bdb56f6b1584cbea07bd
tree022f1187dfbc3eb63688b4b41fddd974fbf57fb9
parentd7d7daece9f3f14045db62dddf47333dab743c3b
udev: "handle" oom in path_id

path_prepend returned a status code, but it wasn't looked at anywhere.
Adding checks for the return value in all the bazillion places where it
is called is not very attractive, so let's just make the whole program
abort cleanly if the (very unlikely) oom is encountered.
src/udev/udev-builtin-path_id.c