Received: from eggs.gnu.org ([2001:4830:134:3::10]:53210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bLWj8-0004ag-U7 for qemu-devel@nongnu.org; Fri, 08 Jul 2016 10:25:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bLWj3-0002yu-U0 for qemu-devel@nongnu.org; Fri, 08 Jul 2016 10:25:58 -0400 From: Alberto Garcia In-Reply-To: <9589dde4-638e-efe5-5791-a990fc93fe3d@redhat.com> References: <9589dde4-638e-efe5-5791-a990fc93fe3d@redhat.com> Date: Fri, 08 Jul 2016 16:25:50 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/2] blockdev: Fix regression with the default naming of throttling groups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, Stefan Hajnoczi , qemu-stable@nongnu.org On Fri 08 Jul 2016 04:23:03 PM CEST, Max Reitz wrote: >> + blk_id = qemu_opts_id(opts); >> + > > Side note: The "id" variable is supposed to contain the exact same > value, but the string it points to is invalidated by the > qdict_del(bs_opts, "id") call. > > So indeed we need to obtain the ID anew here (or we'd have to do > g_strdup() before and g_free() after, which is cumbersome). But > regarding the variable itself, you could have actually reused "id" (I > only noticed that just now). > > But that's just a minor thing, so: > > Reviewed-by: Max Reitz Ok, if this series doesn't get a new version feel free to modify the patch when you apply it. Berto