Received: from eggs.gnu.org ([2001:4830:134:3::10]:37896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjjFO-0000ST-Pe for qemu-devel@nongnu.org; Tue, 13 Sep 2016 04:39:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjjFJ-0007lu-Ry for qemu-devel@nongnu.org; Tue, 13 Sep 2016 04:39:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjjFJ-0007la-MW for qemu-devel@nongnu.org; Tue, 13 Sep 2016 04:39:13 -0400 Date: Tue, 13 Sep 2016 14:09:10 +0530 From: Amit Shah Message-ID: <20160913083910.GA1633@amit-lp.rh> References: <1473448442-29510-1-git-send-email-ashijeetacharya@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473448442-29510-1-git-send-email-ashijeetacharya@gmail.com> Subject: Re: [Qemu-devel] [PATCH] migrate: Fix bounds check for migration parameters in migration.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ashijeet Acharya Cc: quintela@redhat.com, dgilbert@redhat.com, qemu-devel@nongnu.org On (Sat) 10 Sep 2016 [00:44:02], Ashijeet Acharya wrote: > This patch fixes the out-of-bounds check migration parameters in > qmp_migrate_set_parameters() for cpu-throttle-initial and > cpu-throttle-increment by adding a return statement for both. > Due to the missing return statements, parmaters were getting set to > out-of-bounds values despite the error. > > Signed-off-by: Ashijeet Acharya Reviewed-by: Amit Shah Amit