From patchwork Fri Jun 6 09:46:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 31468 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D5D2B20A25 for ; Fri, 6 Jun 2014 09:50:02 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id pa12sf11212917veb.7 for ; Fri, 06 Jun 2014 02:50:02 -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: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=2QwxDmRjc9sM68ioNCqz7sZVrPEZ/0OeNI0iFVU324g=; b=jPHceEycntSkM2riOIV1KjJyAq0xes3V5YmHp0HofXlBnPFHYV6ND2W8IWeRl6fkzc otCpLB5CXNT147r5SbChImDtLcm9WxRraI8jbkMtyyapTtGFYUKqXlmKN6J0+Ezwnd3X qd+hpdQSqEbdUWuR2nstfQx3DmF7vX81kO5QZQ+BcqyEL0qffl4yswIp0B5pQTHA3Ltm NwmuRZEgRGDEpggGrsXvJKx1iRmXUWp/uJDWjpAjkAxr4Z+opSSAU9UOckToxzJpSE7M pSZLBqnV9Ozf03BSWOeiVfsDa2L7O5NYEdo3p1h0r0W+ssEPh3132MMTINg92cvFTDPR 2NeQ== X-Gm-Message-State: ALoCoQl73TzaumSzib6PlyRNFA1xCiv8E8/1JO1WZTmxiD4ZAr0y+DqcvkxDaSliXTTBuLiqKLHX X-Received: by 10.58.178.232 with SMTP id db8mr2631560vec.21.1402048202609; Fri, 06 Jun 2014 02:50:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.232 with SMTP id i95ls668268qge.7.gmail; Fri, 06 Jun 2014 02:50:02 -0700 (PDT) X-Received: by 10.58.227.193 with SMTP id sc1mr1563551vec.43.1402048202477; Fri, 06 Jun 2014 02:50:02 -0700 (PDT) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by mx.google.com with ESMTPS id ym12si5738018vdc.19.2014.06.06.02.50.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 06 Jun 2014 02:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.170 as permitted sender) client-ip=209.85.128.170; Received: by mail-ve0-f170.google.com with SMTP id db11so2783305veb.29 for ; Fri, 06 Jun 2014 02:50:02 -0700 (PDT) X-Received: by 10.53.10.234 with SMTP id ed10mr2102449vdd.86.1402048202412; Fri, 06 Jun 2014 02:50:02 -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 vs6csp84326vcb; Fri, 6 Jun 2014 02:50:02 -0700 (PDT) X-Received: by 10.224.68.2 with SMTP id t2mr6415779qai.71.1402048202023; Fri, 06 Jun 2014 02:50:02 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id c18si12005938qaq.0.2014.06.06.02.50.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 06 Jun 2014 02:50:02 -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]:46194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsqmf-0002zC-J3 for patch@linaro.org; Fri, 06 Jun 2014 05:50:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsqjt-0006Fr-Se for qemu-devel@nongnu.org; Fri, 06 Jun 2014 05:47:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsqjm-0001X4-D5 for qemu-devel@nongnu.org; Fri, 06 Jun 2014 05:47:09 -0400 Received: from afflict.kos.to ([92.243.29.197]:38379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsqjm-0001WQ-6j for qemu-devel@nongnu.org; Fri, 06 Jun 2014 05:47:02 -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 E961F26581; Fri, 6 Jun 2014 11:46:59 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Fri, 6 Jun 2014 12:46:56 +0300 Message-Id: <1402048017-30604-13-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: Riku Voipio , Alexander Graf Subject: [Qemu-devel] [PATCH v2 12/13] 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.170 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 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 29d87f9..e47db2c 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -4806,8 +4806,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;