Received: from eggs.gnu.org ([2001:4830:134:3::10]:34665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alGdN-0003hw-Ar for qemu-devel@nongnu.org; Wed, 30 Mar 2016 09:58:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alGdJ-0003M9-52 for qemu-devel@nongnu.org; Wed, 30 Mar 2016 09:58:09 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:50001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alGdI-0003LZ-Rh for qemu-devel@nongnu.org; Wed, 30 Mar 2016 09:58:05 -0400 Received: from localhost by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 30 Mar 2016 14:58:03 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 51DA31B0805F for ; Wed, 30 Mar 2016 14:58:36 +0100 (BST) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u2UDw1A152822090 for ; Wed, 30 Mar 2016 13:58:01 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u2UDw0wu020703 for ; Wed, 30 Mar 2016 07:58:00 -0600 Date: Wed, 30 Mar 2016 15:57:58 +0200 From: Cornelia Huck Message-ID: <20160330155758.3f994d9b.cornelia.huck@de.ibm.com> In-Reply-To: <1459342088-24311-4-git-send-email-pbonzini@redhat.com> References: <1459342088-24311-1-git-send-email-pbonzini@redhat.com> <1459342088-24311-4-git-send-email-pbonzini@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/9] virtio-blk: fix disabled mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: borntraeger@de.ibm.com, famz@redhat.com, qemu-devel@nongnu.org, mst@redhat.com On Wed, 30 Mar 2016 14:48:02 +0200 Paolo Bonzini wrote: > The missing check on dataplane_disabled caused a segmentation > fault in notify_guest_bh, because s->guest_notifier was NULL. I think this patch description could be improved :) "We must not call virtio_blk_data_plane_notify if dataplane is disabled: we would hit a segmentation fault in notify_guest_bh as s->guest_notifier has not been setup and is NULL." ? > > Signed-off-by: Paolo Bonzini > --- > hw/block/dataplane/virtio-blk.c | 7 +++---- > hw/block/virtio-blk.c | 2 +- > include/hw/virtio/virtio-blk.h | 1 + > 3 files changed, 5 insertions(+), 5 deletions(-) Patch looks good: Reviewed-by: Cornelia Huck