From patchwork Mon Apr 3 18:58:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9660349 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 37D9E6032D for ; Mon, 3 Apr 2017 19:00:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 284B6284F7 for ; Mon, 3 Apr 2017 19:00:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 171AD284C2; Mon, 3 Apr 2017 19:00:02 +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=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0094284C2 for ; Mon, 3 Apr 2017 19:00:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753013AbdDCS7k (ORCPT ); Mon, 3 Apr 2017 14:59:40 -0400 Received: from mail-qt0-f178.google.com ([209.85.216.178]:34170 "EHLO mail-qt0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752945AbdDCS70 (ORCPT ); Mon, 3 Apr 2017 14:59:26 -0400 Received: by mail-qt0-f178.google.com with SMTP id n21so120817274qta.1 for ; Mon, 03 Apr 2017 11:59:21 -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=Aqvltyieywf92VCPopmlSZzPRAcdqi0BMq4d3GxODvNkUEx5e6llLINgCpAVhp0ZWo mw9ld4SrmTVsKUhCrP6esVsnzB8YguC3stOczlFZXk4uroCMnYYy+iGcwt9XgtZpgNb3 KSGIqD47uC0TSbb7cei9UwxblOZi/MzEtq0Xtl0EaaAT+FOICU5gofopMQzR7mL3ua3c gFsbbchoPnryi2JF/y3vt/U62zge1jv5e8Vnxs86L9aVdA2m2mab+Oc1P4/WJ24/ZRMp 1pHAuw/NDalttVRqJdiLQfOZR+hf3HUBtfZNeW7xkAAxfHqQxDsFavbMrZxDEFFz13rO WfEQ== X-Gm-Message-State: AFeK/H0OT0NLTObchwIAb13YCLiThQwnhqQM1WFZjeE60OgULPWDkFmukTKzRqOG3IvaqKIN X-Received: by 10.237.32.69 with SMTP id 63mr18311014qta.107.1491245960796; Mon, 03 Apr 2017 11:59:20 -0700 (PDT) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc:1722:8a6b:a66c:79eb]) by smtp.gmail.com with ESMTPSA id e5sm10173689qtc.6.2017.04.03.11.59.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Apr 2017 11:59:19 -0700 (PDT) From: Laura Abbott To: Sumit Semwal , Riley Andrews , arve@android.com Cc: Laura Abbott , romlem@google.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, Brian Starkey , Daniel Vetter , Mark Brown , Benjamin Gaignard , linux-mm@kvack.org, Laurent Pinchart Subject: [PATCHv3 21/22] staging: android: ion: Set query return value Date: Mon, 3 Apr 2017 11:58:03 -0700 Message-Id: <1491245884-15852-22-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491245884-15852-1-git-send-email-labbott@redhat.com> References: <1491245884-15852-1-git-send-email-labbott@redhat.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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;