From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oren Laadan Subject: Re: [RFC v17][PATCH 52/60] c/r: support semaphore sysv-ipc Date: Wed, 22 Jul 2009 23:46:30 -0400 Message-ID: <4A67DD16.1090704@cs.columbia.edu> References: <1248256822-23416-1-git-send-email-orenl@librato.com> <1248256822-23416-53-git-send-email-orenl@librato.com> <20090722172502.GA15805@lenovo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090722172502.GA15805@lenovo> Sender: owner-linux-mm@kvack.org To: Cyrill Gorcunov Cc: Oren Laadan , Andrew Morton , Linus Torvalds , containers@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-api@vger.kernel.org, Serge Hallyn , Dave Hansen , Ingo Molnar , "H. Peter Anvin" , Alexander Viro , Pavel Emelyanov , Alexey Dobriyan List-Id: linux-api@vger.kernel.org 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org