patch-2.4.21 linux-2.4.21/fs/namei.c
Next file: linux-2.4.21/fs/namespace.c
Previous file: linux-2.4.21/fs/locks.c
Back to the patch index
Back to the overall index
- Lines: 12
- Date:
2003-06-13 07:51:37.000000000 -0700
- Orig file:
linux-2.4.20/fs/namei.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/fs/namei.c linux-2.4.21/fs/namei.c
@@ -1974,8 +1974,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;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)