daandemeyer / rpms / systemd

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