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: 9686005 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 93B1C601C2 for ; Tue, 18 Apr 2017 18:28:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8928524DA2 for ; Tue, 18 Apr 2017 18:28:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DCB92838E; Tue, 18 Apr 2017 18:28:12 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 21B1D24DA2 for ; Tue, 18 Apr 2017 18:28:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE7096E24E; Tue, 18 Apr 2017 18:27:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-f173.google.com (mail-qk0-f173.google.com [209.85.220.173]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5F3176E24D for ; Tue, 18 Apr 2017 18:27:59 +0000 (UTC) Received: by mail-qk0-f173.google.com with SMTP id f133so1196452qke.2 for ; Tue, 18 Apr 2017 11:27:59 -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=KYSG4DxPhJocKFy6dEyvZU9mEuxKbzEX8MWHk3y5kIuCYEexH++aKiQ/6QHDSwKrRa rlO8z/QCkuax5WODYHjdIJHOCK5/H4YWsaEwiLWli1s8BFpKEitJu+g3e5Q4UZrjHVYN U4E8EuzRyXhZTro0uv+p4mQWN7zMg0fQevEHqY1cJtfnGtvh3gsqYHXIYCvC/8EZzsDr JDm8dPm7eL8Z5WirixJxr30BZJEYUTMg/cHUW3ugA182xieARprxxfbhrOpBwInz0EsD 7+w7XXOLtWa/5lRoyCaWruIJlrJQQEvh1eRcdyeViPHqrQpJTzWYoVLVkp58iBVSOE7p FA/g== X-Gm-Message-State: AN3rC/5sYdeeZAUN1xqeOxEhr7UufUkFpWJ+6CUs94k1LDC/a1p91t1e mLxmW6ipsWo3R928 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> 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 , Daniel Vetter , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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;