chiark / gitweb /
[PATCH] udevstart: close open directories.
authorgreg@kroah.com <greg@kroah.com>
Sat, 24 Apr 2004 04:55:57 +0000 (21:55 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:35:17 +0000 (21:35 -0700)
Based on a munged patch from Olaf Hering <olh@suse.de>

udevstart.c

index 5e6606d..1d9b604 100644 (file)
@@ -130,10 +130,13 @@ static void udev_scan(void)
                                                                udev_exec(filename, "block");
                                                        }
                                                }
+                                               closedir(dir3);
                                        }
                                }
+                               closedir(dir2);
                        }
                }
+               closedir(dir);
        }
 
        devpath = "class";
@@ -176,10 +179,13 @@ static void udev_scan(void)
                                                                udev_exec(filename, dent->d_name);
                                                        }
                                                }
+                                               closedir(dir3);
                                        }
                                }
+                               closedir(dir2);
                        }
                }
+               closedir(dir);
        }
 }