From patchwork Tue Apr 18 18:27:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9686109 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4C24F602C2 for ; Tue, 18 Apr 2017 19:44:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 387102838E for ; Tue, 18 Apr 2017 19:44:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C445283E1; Tue, 18 Apr 2017 19:44:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 81A272838E for ; Tue, 18 Apr 2017 19:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=E7lWgu+3vtFMAfPKUaOkHHi9TC7EpvVxbxnjlxjnDBo=; b=pK4NOhYRMDUUwXedub3hlSE4Ek 87KXwo2NXLthSq2ssaKNqfIRVvbTQml/r3GTA92+zAReVfh/fbNbe10NIsGgxzA01Z5irv/KNCCYz RnnRjegR3fAGA8Et+nGVHrwSj56WVnDAK5Oufbi72+Le20Huc02a0mwkSnxfyEoUvcXeCVSEWhcBt 5Fx6h7k8eO9TnqlZf688CwNV7oLJ0rb1SIvBqBzQ5Bhb+CDSuAX5rpQf+GG+ten2nt9jgvke40mYZ zkLnlQqAEe1F7vVrG+6U9dUn5Plk/1Rqcmt+3zLpaKvkA5hoD6tGu3sYgelooBh4wjXyoqSqxQHDK KNuA6PvQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d0Z2s-00034g-4f; Tue, 18 Apr 2017 19:44:14 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0Z2r-00034a-0X for linux-arm-kernel@bombadil.infradead.org; Tue, 18 Apr 2017 19:44:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bhm1p9Q8Nv3sjl2lJgkhex2YtG976eaqOVl9ZbE/KF8=; b=NKBqNL46I7pzmuKV3qL4xh3Ks gcZdR0wXePEdzIbKAzjTa18NUxcmt/ZMGMwn5lh2erXDRvXKbSTAfpoErhHcPpcqYyzx80dOdyx3k IW2AvY975gWzkmotFNFvQKdf33t7BVksxA/we0TU3WZvB1778r0E8MC6sdXQBOoWxYqxNFmlWGhZb BRoqr7CHKAFmXAErY4p9nnMLO85d++Uk/Yp0G3nxT2SpOA0fIRtqNBd+isjqMot5kFxQyCSizihnM xaTEmoeER9QDU6DIv94Tmw/H3wMqaQUvF/CzhuVkFK+cYIAfhtm66DGLZWSi/cDrsbfUU4E//6qMO W9kTGEkAg==; Received: from mail-qk0-f181.google.com ([209.85.220.181]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0Xyz-0006J0-Tw for linux-arm-kernel@lists.infradead.org; Tue, 18 Apr 2017 18:36:10 +0000 Received: by mail-qk0-f181.google.com with SMTP id f133so1394807qke.2 for ; Tue, 18 Apr 2017 11:35:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bhm1p9Q8Nv3sjl2lJgkhex2YtG976eaqOVl9ZbE/KF8=; b=uOWsudF4eojuNx9GIU3iaj/XQMALCU4xBNZ0v3lK/TtjnmcgzVRgyaQ690mNioBFTp cbJRE8WLQUU5BA8Houz/FL1WtcIczvFFZLcNUgDW4xY0CZLf4fzrSeBEZizqz3soSloQ Fc7+Vy22/S3G3WAT1VYXL7i060SJy65Be360YI5CV/L0wxVQQRWGP4FABBLLGGVnL6wL FAmAzz6JfJ1fGh43hTG9hHxSpInmvu4tzV36Vp9KEy9JRnoWkE5RoPXu3kjNCMQ2TEW4 geaRk0KJ6as7cZMUEEr6NsKKuA7KX+luHEjmUW8Xwvryvcr54QIzIjBfQp38QLwdnyDi U6fw== X-Gm-Message-State: AN3rC/6FwyWwgW0+oW+aZ3phYNOU7t0aqNeT6mB+Xd7ZHZa64zHM3Cqb rL6nK+Oh58DFWyC6 X-Received: by 10.233.232.136 with SMTP id a130mr13655933qkg.238.1492540078473; Tue, 18 Apr 2017 11:27:58 -0700 (PDT) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc::159c]) by smtp.gmail.com with ESMTPSA id q66sm10142381qkd.69.2017.04.18.11.27.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Apr 2017 11:27:57 -0700 (PDT) From: Laura Abbott To: Sumit Semwal , Riley Andrews , arve@android.com, Greg Kroah-Hartman Subject: [PATCHv4 11/12] staging: android: ion: Set query return value Date: Tue, 18 Apr 2017 11:27:13 -0700 Message-Id: <1492540034-5466-12-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492540034-5466-1-git-send-email-labbott@redhat.com> References: <1492540034-5466-1-git-send-email-labbott@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170418_143610_026325_B14F978C X-CRM114-Status: UNSURE ( 9.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, romlem@google.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, Mark Brown , Laurent Pinchart , Benjamin Gaignard , Daniel Vetter , Laura Abbott , Brian Starkey , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This never got set in the ioctl. Properly set a return value of 0 on success. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 9eeb06f..d6fd350 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -498,6 +498,7 @@ int ion_query_heaps(struct ion_heap_query *query) } query->cnt = cnt; + ret = 0; out: up_read(&dev->lock); return ret;