Message ID | 1477316855-42218-23-git-send-email-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t2dK965STz9sfH for <incoming@patchwork.ozlabs.org>; Tue, 25 Oct 2016 01:02:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=0cwtTz3/; dkim-atps=neutral Received: from localhost ([::1]:46939 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1byfpy-0008ML-JC for incoming@patchwork.ozlabs.org; Mon, 24 Oct 2016 10:02:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1byfbj-0004A7-5C for qemu-devel@nongnu.org; Mon, 24 Oct 2016 09:48:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1byfbi-0006Qd-Fd for qemu-devel@nongnu.org; Mon, 24 Oct 2016 09:48:07 -0400 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:35378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <paolo.bonzini@gmail.com>) id 1byfbi-0006Q3-8p for qemu-devel@nongnu.org; Mon, 24 Oct 2016 09:48:06 -0400 Received: by mail-wm0-x244.google.com with SMTP id o81so9897401wma.2 for <qemu-devel@nongnu.org>; Mon, 24 Oct 2016 06:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yDbgVusixkI++DCHzYXmHDm7+PSpphUjKbPqZNLh8NQ=; b=0cwtTz3/2IkNkNWnGKVxvrDOairtHrWbYLUJsCr5PnEvi+e9SqZhDlt/JrYWaXI6r7 zRemuV5JK7ZdMqPuP/+Q+DgPvR/OIy2RrEwwP8HHc1dIa8KuFQkFi89zkDOKhO9DtPUQ WObZtSbjyX7v/ykJtJDvgnr4ozpWRJvqdSAkN5i4Xu5A6dwY1gfTWY2wvW2Tb153CPfV r+WkNxx4OlNQBwMdaifn6ocLN7t6R8V0UQjhER67IweeGGc1GaRhORSTHc89FDxhSLzQ vMt/eqvRw6o6umAQYe+oWjZ6ybpue6+6hRusHwl5v1WDY6pb4AALj1J7tYwrrGXOemPL 3BEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=yDbgVusixkI++DCHzYXmHDm7+PSpphUjKbPqZNLh8NQ=; b=nHRelkpsWKyaCDyM8qxwqBV8xx6RKt5/hfShHBWl2Ahpzk3SwRr3X8dKJGxqIJDAZo aBBIF0OKUqJYxF6baTFutmbTzzfHJ2Ulk7GMIAg8i3vCb85B9NpXZ6ug7hWxPc86h+qd VZIG3bQfObp0mhgJgELcezwu/FdpFWRYJCRG6BXrJzaUBcup98VApV+4h1E/dYzIxo5/ O0esaDLa53LDEMSR4iPAj0NrBbxx2v/BdBX9Y8NplyHPKz4yj8PN21K3Cqlfzq7S1STh DBPQ73B/G3ijXNhV70pHLIABZrHDrJ0XbTPr8DJDQ3TwIGHqYwhhHweOrt6iOMMoeeOP sTAw== X-Gm-Message-State: AA6/9RlavnzWHR9Np4ZWjYwD4gf1986+J7MQ+9qG8e+tWWoLNg7FRC369lR5R+UwZ/XNmg== X-Received: by 10.28.169.151 with SMTP id s145mr16159136wme.40.1477316885269; Mon, 24 Oct 2016 06:48:05 -0700 (PDT) Received: from 640k.lan (dynamic-adsl-78-12-246-178.clienti.tiscali.it. [78.12.246.178]) by smtp.gmail.com with ESMTPSA id us3sm19434867wjb.32.2016.10.24.06.48.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Oct 2016 06:48:04 -0700 (PDT) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Date: Mon, 24 Oct 2016 15:47:07 +0200 Message-Id: <1477316855-42218-23-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1477316855-42218-1-git-send-email-pbonzini@redhat.com> References: <1477316855-42218-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::244 Subject: [Qemu-devel] [PULL 22/50] ringbuf: fix chr_write return value X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= <marcandre.lureau@redhat.com> Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
diff --git a/qemu-char.c b/qemu-char.c index 9165051..650943d 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3328,7 +3328,7 @@ static int ringbuf_chr_write(CharDriverState *chr, const uint8_t *buf, int len) } } - return 0; + return len; } static int ringbuf_chr_read(CharDriverState *chr, uint8_t *buf, int len)