[CRIU] [PATCH 08/14] pstree: allocate fdt shared data
Andrew Vagin
avagin at parallels.com
Fri Jan 11 06:20:55 EST 2013
On Fri, Jan 11, 2013 at 02:45:26PM +0400, Pavel Emelyanov wrote:
> > +static inline int shared_fdtable(struct pstree_item *item) {
> > + return (item->parent && item->parent->state != TASK_HELPER &&
> > + item->ids &&
> > + item->parent->ids &&
> > + item->ids->files_id &&
> > + item->ids->files_id == item->parent->ids->files_id);
>
> How can be parent->ids == NULL? Same for item->ids?
For example if we use old images v0.3
>
> > +}
> > +
> > extern void free_pstree(struct pstree_item *root_item);
> > extern struct pstree_item *__alloc_pstree_item(bool rst);
> > #define alloc_pstree_item() __alloc_pstree_item(false)
More information about the CRIU
mailing list