From patchwork Wed Apr 23 13:12:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 28883 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 60EAB20534 for ; Wed, 23 Apr 2014 13:13:18 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id i8sf3314948qcq.0 for ; Wed, 23 Apr 2014 06:13:18 -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=g3MxklVA2Zpi5N09Yd+n221f8exDhlIB0PtVwxv+/sE=; b=PboWLwXmku2z9eFAWKDkYHhGy/EDeUvJjbAei83tseWpSYo35YjHm0JV12XNU9oP0w CPROrQfKTkV9Ht7QgtoykD1+RabPgu5qFN8pxPd2VA5AGj8nCAQzusMXXvrGzO1KRpD8 h/YV+cU4//UXdkEnDnJCYiM9ybK5IksgLUaAm/07t6xOYUUk49foDHT/hYGA3RwofOUp oKXa0YVytNrh5ssT5AmK0UFHEJY1W4Mod3Ef4DRT8G9B5IGLTjo7s2Bv5Hk0n0RVm7EC pvKCwvCPvJvzZP75q20SsRyjfVJNoyr3p5c9dHLLjoWFg483PK+l0PosYzSHTOdI3xKD AjDg== X-Gm-Message-State: ALoCoQmxe1JQGq3tJc1aoIlLdCBV202Etbu0Zi26GZlgC/o8Bot29tFfjZ7QHjy/fMIprVjnakFa X-Received: by 10.236.38.231 with SMTP id a67mr23406512yhb.17.1398258798107; Wed, 23 Apr 2014 06:13:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.38.133 with SMTP id t5ls555530qgt.43.gmail; Wed, 23 Apr 2014 06:13:18 -0700 (PDT) X-Received: by 10.58.90.99 with SMTP id bv3mr402701veb.34.1398258798008; Wed, 23 Apr 2014 06:13:18 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id lt7si159771vcb.50.2014.04.23.06.13.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Apr 2014 06:13:17 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id hu19so1077556vcb.23 for ; Wed, 23 Apr 2014 06:13:17 -0700 (PDT) X-Received: by 10.52.130.225 with SMTP id oh1mr35943386vdb.8.1398258797931; Wed, 23 Apr 2014 06:13:17 -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.220.221.72 with SMTP id ib8csp102950vcb; Wed, 23 Apr 2014 06:13:16 -0700 (PDT) X-Received: by 10.140.32.97 with SMTP id g88mr59768895qgg.17.1398258794876; Wed, 23 Apr 2014 06:13:14 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id s32si421770qgd.143.2014.04.23.06.13.14 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Apr 2014 06:13:14 -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]:60836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcwzC-0002rp-Cm for patch@linaro.org; Wed, 23 Apr 2014 09:13:14 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WcwyE-0001kj-BP for qemu-devel@nongnu.org; Wed, 23 Apr 2014 09:12:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wcwy8-0001Jx-QT for qemu-devel@nongnu.org; Wed, 23 Apr 2014 09:12:14 -0400 Received: from afflict.kos.to ([92.243.29.197]:42808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcwy8-0001J1-JX for qemu-devel@nongnu.org; Wed, 23 Apr 2014 09:12:08 -0400 Received: from localhost.localdomain (afflict [92.243.29.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 3E8FD264DA; Wed, 23 Apr 2014 15:12:06 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Wed, 23 Apr 2014 16:12:03 +0300 Message-Id: <1b32d3fd1ccf6b14e42b51e26876377c08f158ed.1398257165.git.riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 92.243.29.197 Cc: Alexander Graf Subject: [Qemu-devel] [PATCH 12/13] remove __get_user return check from PPC do_setcontext 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=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) 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 487fa2f..424b5d8 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -4839,8 +4839,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;