changeset 315:31efcf0d9807

yaffs_guts.c: Fix low-memory assert bug. (Also sent upstream.)
author Ross Younger <wry@ecoscentric.com>
date Thu, 29 Oct 2009 17:37:17 +0000
parents 6bbc585bac00
children fd6ccfd7d352
files packages/fs/yaffs/current/ChangeLog packages/fs/yaffs/current/src/yaffs_guts.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/fs/yaffs/current/ChangeLog
+++ b/packages/fs/yaffs/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-10-29  Ross Younger  <wry@ecoscentric.com>
+
+	* yaffs_guts.c: Fix low-memory assert bug.
+
 2009-10-09  Ross Younger  <wry@ecoscentric.com>
 
 	* tests/fops.c: Don't make unreasonable use of stack.
--- a/packages/fs/yaffs/current/src/yaffs_guts.c
+++ b/packages/fs/yaffs/current/src/yaffs_guts.c
@@ -2181,7 +2181,7 @@ yaffs_Object *yaffs_CreateNewObject(yaff
 	if (type == YAFFS_OBJECT_TYPE_FILE) {
 		tn = yaffs_GetTnode(dev);
 		if (!tn) {
-			yaffs_FreeObject(theObject);
+			yaffs_DoGenericObjectDeletion(theObject);
 			return NULL;
 		}
 	}
@@ -2295,7 +2295,7 @@ static yaffs_Object *yaffs_MknodObject(y
 	if (type == YAFFS_OBJECT_TYPE_SYMLINK) {
 		str = yaffs_CloneString(aliasString);
 		if (!str) {
-			yaffs_FreeObject(in);
+			yaffs_DoGenericObjectDeletion(in);
 			return NULL;
 		}
 	}