From patchwork Tue Jun 10 13:20:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 31652 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CA0B120675 for ; Tue, 10 Jun 2014 13:23:48 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id a41sf6707600yho.9 for ; Tue, 10 Jun 2014 06:23:48 -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=FHrhZ6qXprnXNZWOi4i5CG9dOSgGjfKuxjSg7tIE/ds=; b=LWGGX7KOmlTXKBxVE6AkLePh9lhex/duQ3PL0hHovU1B7a3TfmQ+iYGUGxw07840NH kXcAg6KA1EPjoccqBwFT9eA4QEzCOwq/iV6qvuBw0x6hw0iFiMh73N8W3Q8qrQvCeMK7 HrAMspbnll7QajWdbE8W8QuGRAcOwx3MJXC+/7ys8lpDIm5z0CiQ1XATO3dCkUsJM8Kd kh0EcyV7lb5AYQmSjdatYYoeq8LpYYNCcSf44nx6xFQHlmtJVHbRgOWrkUlPH2cIK49H cbEEysxX+f2F6iCR5uxotzLsGyqaaOMZoLERPK3a8t1b2mL1sHji46NmLN86ZDirjJmu Lhlw== X-Gm-Message-State: ALoCoQllfLPRPExkglxopsmKE6CdaSCeNOQL08SzpeRK/ikzlWu3xvtSfIr0/9SsEgOW33H9ZjcV X-Received: by 10.236.141.11 with SMTP id f11mr310729yhj.54.1402406628526; Tue, 10 Jun 2014 06:23:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.171 with SMTP id 40ls2104566qgt.85.gmail; Tue, 10 Jun 2014 06:23:48 -0700 (PDT) X-Received: by 10.52.53.69 with SMTP id z5mr27903320vdo.42.1402406628267; Tue, 10 Jun 2014 06:23:48 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id ym12si13071131vdc.19.2014.06.10.06.23.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 06:23:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id hy10so2392291vcb.31 for ; Tue, 10 Jun 2014 06:23:48 -0700 (PDT) X-Received: by 10.220.15.8 with SMTP id i8mr16061760vca.45.1402406628199; Tue, 10 Jun 2014 06:23:48 -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 vs6csp225000vcb; Tue, 10 Jun 2014 06:23:47 -0700 (PDT) X-Received: by 10.140.86.99 with SMTP id o90mr39394780qgd.14.1402406627558; Tue, 10 Jun 2014 06:23:47 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 9si27570638qan.42.2014.06.10.06.23.47 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Jun 2014 06:23:47 -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]:39753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuM1i-0004ZD-Pz for patch@linaro.org; Tue, 10 Jun 2014 09:23:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuLyz-0000La-Am for qemu-devel@nongnu.org; Tue, 10 Jun 2014 09:21:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuLyp-0007aW-Pk for qemu-devel@nongnu.org; Tue, 10 Jun 2014 09:20:57 -0400 Received: from afflict.kos.to ([92.243.29.197]:41090) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuLyp-0007Zd-JC for qemu-devel@nongnu.org; Tue, 10 Jun 2014 09:20: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 986EF26581; Tue, 10 Jun 2014 15:20:45 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Tue, 10 Jun 2014 16:20:41 +0300 Message-Id: <17f34aa372a4ebeb9d7b74dc778bf6d435f4ab39.1402405819.git.riku.voipio@linaro.org> 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: 92.243.29.197 Cc: Riku Voipio , Alexander Graf Subject: [Qemu-devel] [PATCH v3 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.220.172 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;