Cyrill Gorcunov wrote: > [Oren Laadan - Wed, Jul 22, 2009 at 06:00:14AM -0400] > ... > | +static struct sem *restore_sem_array(struct ckpt_ctx *ctx, int nsems) > | +{ > | + struct sem *sma; > | + int i, ret; > | + > | + sma = kmalloc(nsems * sizeof(*sma), GFP_KERNEL); > > Forgot to > > if (!sma) > return -ENOMEM; > > right? Yep ! thanks... (fixed commit to branch ckpt-v17-dev) Oren. -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html