Received: from eggs.gnu.org ([2001:4830:134:3::10]:38543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjjHE-00020c-DE for qemu-devel@nongnu.org; Tue, 13 Sep 2016 04:41:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjjHA-0008Qr-NY for qemu-devel@nongnu.org; Tue, 13 Sep 2016 04:41:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjjHA-0008Qi-HU for qemu-devel@nongnu.org; Tue, 13 Sep 2016 04:41:08 -0400 Date: Tue, 13 Sep 2016 14:11:05 +0530 From: Amit Shah Message-ID: <20160913084105.GB1633@amit-lp.rh> References: <1473455597-3107-1-git-send-email-ashijeetacharya@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1473455597-3107-1-git-send-email-ashijeetacharya@gmail.com> Subject: Re: [Qemu-devel] [PATCH v4] 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, eblake@redhat.com, qemu-devel@nongnu.org On (Sat) 10 Sep 2016 [02:43:17], Ashijeet Acharya wrote: > This patch fixes the out-of-bounds check of migration parameters in > qmp_migrate_set_parameters() for cpu-throttle-initial and > cpu-throttle-increment by adding a return statement for both as they > were broken since their introduction in 2.5 via commit 1626fee. > Due to the missing return statements, parameters were getting set to > out-of-bounds values despite the error. > > Signed-off-by: Ashijeet Acharya > Reviewed-by: Eric Blake > --- > Changes in v4: > -Fix the typo in commit message > -Include the commit id which caused the regression OK - I acked v1, but this is a better commit message. Reviewed-by: Amit Shah Amit