yaffs Fix xattr error codes
[yaffs2.git] / yaffs_guts.c
index 604dc0910af9301d9b70d2feb304a9d9b1559b12..84d14c94a7fbb5583a36ddf28790b8fe1a56bf68 100644 (file)
@@ -7516,7 +7516,7 @@ static int yaffs_DoXFetch(yaffs_Object *obj, const char *name, void *value, int
        int retval = 0;
 
        if(obj->hdrChunk < 1)
        int retval = 0;
 
        if(obj->hdrChunk < 1)
-               return -ENOENT;
+               return -ENODATA;
 
        buffer = yaffs_GetTempBuffer(dev, __LINE__);
        if(!buffer)
 
        buffer = yaffs_GetTempBuffer(dev, __LINE__);
        if(!buffer)