From patchwork Mon Jun 9 12:46:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 31552 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f197.google.com (mail-ie0-f197.google.com [209.85.223.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7D11B20675 for ; Mon, 9 Jun 2014 12:51:52 +0000 (UTC) Received: by mail-ie0-f197.google.com with SMTP id lx4sf953536iec.0 for ; Mon, 09 Jun 2014 05:51:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=9BanvLdxcaadWg3bXj0jFZJqbBmLzh2IAohJFPywjSk=; b=B33QnlnJfUnO85larHRtuGJ5QIZ8xv/R5ykdKqpzp9ytQUQaU5duWoACSFATBySg3S cpfapSkcxi1n8nNsNFAop7w84/hR1AqYmvo5TkeBCwgkX/SZTrYaWWsTq2ghIHjhkElr rCMEAwdhIGSvKFqvynf5ANikiqeKm0I/KhJIMK6hgb3d7iixS6VAgxDg+Yq39KCEvMUt pIzHEsIyHwqY563AnXYSjd/jDHBOgfND/tX5r9jj/k1FsDZkyGdecRAsHB0SKTLKwVb7 2XagVmngK9o17aZVu+hRXrG0UKkTsy4mZHgMzrGn5BNjWDCBP8GWHRjciQSEncGYViw5 Tm6Q== X-Gm-Message-State: ALoCoQlzdoMITH7uCbjVEauV1ACJlK2oNyOAlicR4C4YNJtI5x/BiINLsq+WjX4wYfTiQ7kKWHcf X-Received: by 10.50.87.65 with SMTP id v1mr1699994igz.0.1402318311933; Mon, 09 Jun 2014 05:51:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.8 with SMTP id y8ls1682893qgy.11.gmail; Mon, 09 Jun 2014 05:51:51 -0700 (PDT) X-Received: by 10.58.22.164 with SMTP id e4mr493469vef.71.1402318311805; Mon, 09 Jun 2014 05:51:51 -0700 (PDT) Received: from mail-ve0-f179.google.com (mail-ve0-f179.google.com [209.85.128.179]) by mx.google.com with ESMTPS id t3si10582858vcx.5.2014.06.09.05.51.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Jun 2014 05:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) client-ip=209.85.128.179; Received: by mail-ve0-f179.google.com with SMTP id oy12so6338227veb.24 for ; Mon, 09 Jun 2014 05:51:51 -0700 (PDT) X-Received: by 10.220.15.8 with SMTP id i8mr9547945vca.45.1402318311514; Mon, 09 Jun 2014 05:51:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp143525vcb; Mon, 9 Jun 2014 05:51:51 -0700 (PDT) X-Received: by 10.224.19.131 with SMTP id a3mr32152161qab.3.1402318311046; Mon, 09 Jun 2014 05:51:51 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 10si23614053qav.9.2014.06.09.05.51.50 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 09 Jun 2014 05:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:60879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wtz3G-0003sb-MZ for patch@linaro.org; Mon, 09 Jun 2014 08:51:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtyyT-0005cP-TG for qemu-devel@nongnu.org; Mon, 09 Jun 2014 08:46:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtyyN-0007hp-AF for qemu-devel@nongnu.org; Mon, 09 Jun 2014 08:46:53 -0400 Received: from [2001:4b98:dc0:45:216:3eff:fe3d:166f] (port=55299 helo=afflict.kos.to) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtyyN-0007h6-3v for qemu-devel@nongnu.org; Mon, 09 Jun 2014 08:46:47 -0400 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 139E226581; Mon, 9 Jun 2014 14:46:45 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Mon, 9 Jun 2014 15:46:37 +0300 Message-Id: X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 2001:4b98:dc0:45:216:3eff:fe3d:166f Cc: peter.maydell@linaro.org, Riku Voipio , Alexander Graf Subject: [Qemu-devel] [PULL 12/18] signal/ppc/do_setcontext remove __get_user return check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.179 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Riku Voipio The last remaining check for return value of __get_user. Signed-off-by: Riku Voipio Reviewed-by: Peter Maydell Cc: Alexander Graf --- linux-user/signal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linux-user/signal.c b/linux-user/signal.c index a76aa92..62f2346 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -4819,8 +4819,7 @@ static int do_setcontext(struct target_ucontext *ucp, CPUPPCState *env, int sig) fprintf (stderr, "do_setcontext: not implemented\n"); return 0; #else - if (__get_user(mcp_addr, &ucp->tuc_regs)) - return 1; + __get_user(mcp_addr, &ucp->tuc_regs); if (!lock_user_struct(VERIFY_READ, mcp, mcp_addr, 1)) return 1;