Received: from eggs.gnu.org ([2001:4830:134:3::10]:43315) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bricu-0005Ze-VY for qemu-devel@nongnu.org; Wed, 05 Oct 2016 05:36:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bricr-0007Mr-Qk for qemu-devel@nongnu.org; Wed, 05 Oct 2016 05:36:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bricr-0007Mi-Kn for qemu-devel@nongnu.org; Wed, 05 Oct 2016 05:36:33 -0400 From: Juan Quintela In-Reply-To: <1473455597-3107-1-git-send-email-ashijeetacharya@gmail.com> (Ashijeet Acharya's message of "Sat, 10 Sep 2016 02:43:17 +0530") References: <1473455597-3107-1-git-send-email-ashijeetacharya@gmail.com> Reply-To: quintela@redhat.com Date: Wed, 05 Oct 2016 11:36:28 +0200 Message-ID: <87int7t9wj.fsf@emacs.mitica> MIME-Version: 1.0 Content-Type: text/plain 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: amit.shah@redhat.com, dgilbert@redhat.com, eblake@redhat.com, qemu-devel@nongnu.org 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 Reviewed-by: Juan Quintela applied, thanks.