All of lore.kernel.org
 help / color / mirror / Atom feed
* path_release missing or not?
@ 2002-11-12 22:11 Pete Zaitcev
  2002-11-12 22:28 ` Alexander Viro
  0 siblings, 1 reply; 2+ messages in thread
From: Pete Zaitcev @ 2002-11-12 22:11 UTC (permalink / raw)
  To: viro; +Cc: linux-kernel

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: path_release missing or not?
  2002-11-12 22:11 path_release missing or not? Pete Zaitcev
@ 2002-11-12 22:28 ` Alexander Viro
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Viro @ 2002-11-12 22:28 UTC (permalink / raw)
  To: Pete Zaitcev; +Cc: linux-kernel



On Tue, 12 Nov 2002, Pete Zaitcev wrote:

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

Looks fine.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-12 22:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-12 22:11 path_release missing or not? Pete Zaitcev
2002-11-12 22:28 ` Alexander Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.