|
@@ -288,6 +288,8 @@ struct jffs2_xattr_datum *jffs2_alloc_xattr_datum(void)
|
|
struct jffs2_xattr_datum *xd;
|
|
struct jffs2_xattr_datum *xd;
|
|
xd = kmem_cache_zalloc(xattr_datum_cache, GFP_KERNEL);
|
|
xd = kmem_cache_zalloc(xattr_datum_cache, GFP_KERNEL);
|
|
dbg_memalloc("%p\n", xd);
|
|
dbg_memalloc("%p\n", xd);
|
|
|
|
+ if (!xd)
|
|
|
|
+ return NULL;
|
|
|
|
|
|
xd->class = RAWNODE_CLASS_XATTR_DATUM;
|
|
xd->class = RAWNODE_CLASS_XATTR_DATUM;
|
|
xd->node = (void *)xd;
|
|
xd->node = (void *)xd;
|
|
@@ -306,6 +308,8 @@ struct jffs2_xattr_ref *jffs2_alloc_xattr_ref(void)
|
|
struct jffs2_xattr_ref *ref;
|
|
struct jffs2_xattr_ref *ref;
|
|
ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL);
|
|
ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL);
|
|
dbg_memalloc("%p\n", ref);
|
|
dbg_memalloc("%p\n", ref);
|
|
|
|
+ if (!ref)
|
|
|
|
+ return NULL;
|
|
|
|
|
|
ref->class = RAWNODE_CLASS_XATTR_REF;
|
|
ref->class = RAWNODE_CLASS_XATTR_REF;
|
|
ref->node = (void *)ref;
|
|
ref->node = (void *)ref;
|