Mercurial > yaffs-ecoscentric
comparison packages/fs/yaffs/current/src/yaffs_guts.c @ 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 | 8678bc743892 |
| children | 1c56b1df53d8 |
comparison
equal
deleted
inserted
replaced
| 314:6bbc585bac00 | 315:31efcf0d9807 |
|---|---|
| 2179 return NULL; | 2179 return NULL; |
| 2180 | 2180 |
| 2181 if (type == YAFFS_OBJECT_TYPE_FILE) { | 2181 if (type == YAFFS_OBJECT_TYPE_FILE) { |
| 2182 tn = yaffs_GetTnode(dev); | 2182 tn = yaffs_GetTnode(dev); |
| 2183 if (!tn) { | 2183 if (!tn) { |
| 2184 yaffs_FreeObject(theObject); | 2184 yaffs_DoGenericObjectDeletion(theObject); |
| 2185 return NULL; | 2185 return NULL; |
| 2186 } | 2186 } |
| 2187 } | 2187 } |
| 2188 | 2188 |
| 2189 if (theObject) { | 2189 if (theObject) { |
| 2293 return YAFFS_FAIL; | 2293 return YAFFS_FAIL; |
| 2294 | 2294 |
| 2295 if (type == YAFFS_OBJECT_TYPE_SYMLINK) { | 2295 if (type == YAFFS_OBJECT_TYPE_SYMLINK) { |
| 2296 str = yaffs_CloneString(aliasString); | 2296 str = yaffs_CloneString(aliasString); |
| 2297 if (!str) { | 2297 if (!str) { |
| 2298 yaffs_FreeObject(in); | 2298 yaffs_DoGenericObjectDeletion(in); |
| 2299 return NULL; | 2299 return NULL; |
| 2300 } | 2300 } |
| 2301 } | 2301 } |
| 2302 | 2302 |
| 2303 | 2303 |
