dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
923a60
From a571e5420b188913e4986f65c33294c2b39e3f7d Mon Sep 17 00:00:00 2001
923a60
From: Lukas Nykryn <lnykryn@redhat.com>
923a60
Date: Tue, 14 Jul 2015 17:24:09 +0200
923a60
Subject: [PATCH] udev: fix crash in path_id builtin
923a60
923a60
RHEL-only
923a60
923a60
Resolves: #957112
923a60
---
923a60
 src/udev/udev-builtin-path_id.c | 4 ++++
923a60
 1 file changed, 4 insertions(+)
923a60
923a60
diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c
923a60
index 025392df5b..9ca608468c 100644
923a60
--- a/src/udev/udev-builtin-path_id.c
923a60
+++ b/src/udev/udev-builtin-path_id.c
923a60
@@ -737,6 +737,10 @@ out:
923a60
                 }
923a60
 
923a60
                 free(path);
923a60
+                path = NULL;
923a60
+                supported_transport = false;
923a60
+                supported_parent = false;
923a60
+
923a60
 
923a60
                 if (new_sas_path) {
923a60
                         enable_new_sas_path = false;