Received: from eggs.gnu.org ([2001:4830:134:3::10]:36980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2LOl-0005Xd-6H for qemu-devel@nongnu.org; Sun, 23 Apr 2017 13:34:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2LOi-0008GH-1z for qemu-devel@nongnu.org; Sun, 23 Apr 2017 13:34:11 -0400 References: <1485377117-18105-1-git-send-email-thuth@redhat.com> From: Michael Tokarev Message-ID: Date: Sun, 23 Apr 2017 20:34:05 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hw/core/generic-loader: Fix crash when running without CPU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , qemu-devel@nongnu.org, Alistair Francis Cc: QEMU Trivial , Laurent Vivier 27.02.2017 22:36, Thomas Huth wrote: > On 25.01.2017 21:45, Thomas Huth wrote: >> When running QEMU with "-M none -device loader,file=kernel.elf", it >> currently crashes with a segmentation fault, because the "none"-machine >> does not have any CPU by default and the generic loader code tries >> to dereference s->cpu. Fix it by adding an appropriate check for a >> NULL pointer. Applied to -trivial, thanks! /mjt