path_release missing or not?

From: Pete Zaitcev (zaitcev@redhat.com)
Date: Tue Nov 12 2002 - 17:11:10 EST


Al, please tell me if the patch below is bogus. I checked paths
and it looks right, but I may be missing something.

-- Pete

--- linux-2.4.19/fs/namei.c 2002-08-02 17:39:45.000000000 -0700
+++ linux-2.4.19-p3/fs/namei.c 2002-11-12 14:01:55.000000000 -0800
@@ -1984,8 +1984,10 @@
          * bloody create() on broken symlinks. Furrfu...
          */
         name = __getname();
- if (!name)
+ if (!name) {
+ path_release(nd);
                 return -ENOMEM;
+ }
         strcpy(name, nd->last.name);
         nd->last.name = name;
         return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:27 EST