From patchwork Tue Jun 17 14:56:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 32034 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B0954206A0 for ; Tue, 17 Jun 2014 14:58:21 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id r10sf14412350pdi.2 for ; Tue, 17 Jun 2014 07:58:21 -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: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=FHrhZ6qXprnXNZWOi4i5CG9dOSgGjfKuxjSg7tIE/ds=; b=WSGqPW4P6tz0nXuNyY9FiOtHbH/iCJk+sX7hbhxBQ27kUPheSb49Y8HWs9wKEl770O P3HM0+8U+3PVsDNVPCG1CAeq/mIkHMRVVliDWW8I3wp+x0eGLNkJr+SUuDbc4KQTrwLs lPWIMU+4/KqZ5dQW2IVlJMHTGQvX03KmFOCKOgnx9jiJ8pjZuKrlgXZlHkbddZR2MuWc +mrx+ge/IdM4mlUzHAC6zd0rY7RchKiqtHsSuXJFCaedQyCq//bqbDNTPVZXKJQKwtsu FvzDvp5Bhq/nMAgAMJIAcCSw/BiRLesXBpcoMyY13ApF83awuaw7Wcm4Ahi3sKHmFkvY 4qyg== X-Gm-Message-State: ALoCoQnQJfkWHWHrHqYvyyY/k87OFYbJDyT9YvD0ZWZRdiX3omGzSvRvMIw3YTAhyFGU3+eFwboQ X-Received: by 10.66.97.99 with SMTP id dz3mr1028331pab.24.1403017100878; Tue, 17 Jun 2014 07:58:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.37 with SMTP id g34ls4785771qgd.64.gmail; Tue, 17 Jun 2014 07:58:20 -0700 (PDT) X-Received: by 10.58.186.172 with SMTP id fl12mr1601997vec.39.1403017100739; Tue, 17 Jun 2014 07:58:20 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id tk8si5567387vcb.62.2014.06.17.07.58.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Jun 2014 07:58:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id lf12so6497684vcb.18 for ; Tue, 17 Jun 2014 07:58:20 -0700 (PDT) X-Received: by 10.220.44.141 with SMTP id a13mr790585vcf.71.1403017100656; Tue, 17 Jun 2014 07:58:20 -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 vs6csp215641vcb; Tue, 17 Jun 2014 07:58:20 -0700 (PDT) X-Received: by 10.140.26.179 with SMTP id 48mr35257945qgv.51.1403017099626; Tue, 17 Jun 2014 07:58:19 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id g10si17187326qay.130.2014.06.17.07.58.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 17 Jun 2014 07:58:19 -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]:51135 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwuq3-0006r5-5Q for patch@linaro.org; Tue, 17 Jun 2014 10:58:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwuox-0005hR-T1 for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:57:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wwuos-0004Qy-Dd for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:57:11 -0400 Received: from afflict.kos.to ([92.243.29.197]:46256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwuos-0004Pq-7M for qemu-devel@nongnu.org; Tue, 17 Jun 2014 10:57:06 -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 B848426581; Tue, 17 Jun 2014 16:57:03 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 17 Jun 2014 17:56:55 +0300 Message-Id: <9e918dc92723ee50a82d06296b3a14621d9eb52c.1403016610.git.riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: peter.maydell@linaro.org, Riku Voipio , Alexander Graf Subject: [Qemu-devel] [PULL v2 12/17] 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.220.173 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 87e4575..f3b4378 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;