a99e84bf4c
1033-udev-really-exclude-device-mapper-from-block-device.patch 1034-udev-check-the-return-value-from-udev_enumerate_scan.patch - Add upstream patches 1033-udev-really-exclude-device-mapper-from-block-device.patch 1034-udev-check-the-return-value-from-udev_enumerate_scan.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=666
27 lines
1.0 KiB
Diff
27 lines
1.0 KiB
Diff
From 47a3fa0f7679521b85f7aeba9e245c52cc7bb2cb Mon Sep 17 00:00:00 2001
|
|
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
|
|
Date: Wed, 4 Jun 2014 23:40:43 +0200
|
|
Subject: [PATCH] udev: check the return value from udev_enumerate_scan_devices
|
|
|
|
The return value from udev_enumerate_scan_devices was stored but
|
|
never used. I assume this was meant to be checked.
|
|
|
|
Signed-off-by: Robert Milasan <rmilasan@suse.com>
|
|
---
|
|
src/udev/udevd.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
Index: systemd-210/src/udev/udevd.c
|
|
===================================================================
|
|
--- systemd-210.orig/src/udev/udevd.c
|
|
+++ systemd-210/src/udev/udevd.c
|
|
@@ -783,6 +783,8 @@ static int synthesize_change(struct udev
|
|
return r;
|
|
|
|
r = udev_enumerate_scan_devices(e);
|
|
+ if (r < 0)
|
|
+ return r;
|
|
|
|
udev_list_entry_foreach(item, udev_enumerate_get_list_entry(e)) {
|
|
_cleanup_udev_device_unref_ struct udev_device *d = NULL;
|