r=nikita,shadow
- fix for memory allocation result check in lu_object_alloc().
struct list_head *layers;
int clean;
int result;
+ ENTRY;
/*
* Create top-level object slice. This will also create
*/
top = s->ls_top_dev->ld_ops->ldo_object_alloc(env,
NULL, s->ls_top_dev);
- if (IS_ERR(top))
- RETURN(top);
+ if (top == NULL)
+ RETURN(ERR_PTR(-ENOMEM));
/*
* This is the only place where object fid is assigned. It's constant
* after this point.