Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1379rdf; Thu, 2 Nov 2023 12:01:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkKHfmIqRC4XefA1Rz1qwB9n/Z4BkFhpxwEMrbNKSx+J+SB5+JASfIvicyzcLCKeJAlvos X-Received: by 2002:a05:6a00:1886:b0:692:a727:1fdd with SMTP id x6-20020a056a00188600b00692a7271fddmr23557955pfh.4.1698951697255; Thu, 02 Nov 2023 12:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698951697; cv=none; d=google.com; s=arc-20160816; b=ZZSJwhOL7h1RPJ7cE6sQjpUC8/2eOYJAkJo7v34hqr/54k01hgF6UXsCB1/3eM8y3H O4awbq9jxMf9ysg5uA0c7dKb8JYDqKWE1mAUygoNXHHlN6xXwbHzTNPn/Wp6Bz0yccFq 582+H/X2OBeIfCofMMxFI40KEgulAg7WT6aYP7SpZU2mRChGmhWm1r63QtEU5G9ejWol Y8/eoTycS8VJY1b5BKlkTJBRDPtV+MPaIeocUVsnmJVz2eueWNCp3+v5j1O20+eUm3s9 jdbxhkhZ9Fpfzlzq5Tu95LP6NSCJqqbcG81vijwAYR/jHyYnCHOTtQo9WJ30ZTxwBBVa Uw0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=uYgheZZZGyuHcjURmTvIQL5X5iZFtwQKbwUqnNega9g=; fh=ZZ/z8JhVlcClDCviZPaHhaeyKl9o1X8BzDjAxIKWxow=; b=vNoz2foLpvrPL7LfleuaF6S/4lDkVdbzW9bFOHUeeYdI20i5xNv6YJAU9nqtE5roST DGEPf7bhMzp6JoE82OqUftwWUCPCo6SzDED7t9VvhZgQlDJgOVPsffn/Bwo2C3xXaL9s WyBBjjiWN1qgfAP9mHusN7OQbTAfaawwVBjbguo7Z+8YRRmPthAG1fY1LKyjVILSNd0V 2frfPdPPghqJh4ZXKfL7uf8rYaEeLLP9QMo9FJPZnXIj1QNaguvAbqqznoLUY35evo+v ilI6kSZQxB4h1shON8zAfr7Oxpw9TNqTbf392hXLt0WlQxSUEKk/TFhDbdNJRqySsI1E ofXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=qjFYM9lc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 184-20020a6308c1000000b005bd11902100si117886pgi.840.2023.11.02.12.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 12:01:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=qjFYM9lc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9EE288135C58; Thu, 2 Nov 2023 12:01:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377407AbjKBTA4 (ORCPT + 99 others); Thu, 2 Nov 2023 15:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377371AbjKBTAq (ORCPT ); Thu, 2 Nov 2023 15:00:46 -0400 Received: from mail-pf1-x449.google.com (mail-pf1-x449.google.com [IPv6:2607:f8b0:4864:20::449]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A6D0186 for ; Thu, 2 Nov 2023 12:00:43 -0700 (PDT) Received: by mail-pf1-x449.google.com with SMTP id d2e1a72fcca58-6b496e1e53bso1292285b3a.0 for ; Thu, 02 Nov 2023 12:00:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698951643; x=1699556443; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=uYgheZZZGyuHcjURmTvIQL5X5iZFtwQKbwUqnNega9g=; b=qjFYM9lcZ1qV12u5xPsrPKSU2T5hJFoA6EY2FDCP3M7W5KkfbfbUbY87KNei4L9edy yhkSkckjbzi7Y0wKT3VWPo9+nvZy1Up6kPGli/JVBANGdzbG9WxLluqRjjwp2g0CXyRm P0JgcXkBMCrqChHIRBmpmgvUD7oWOfDPWrZANKswL69EQ95st4AtEJSxwwEmJnKI8oYV SHvqDqSqseqjEmR/EfDHpit4xXJlIznRGuXMqIJlHpl7ker6mBPtiK9wM+7b6QIEPVxG YacqYZSd7sFgsPcW9uhtAFvmnkM2o3v+CTLsvATG9ayuM1vjjfSeP34cOseFNrK0N2+J /Cfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698951643; x=1699556443; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uYgheZZZGyuHcjURmTvIQL5X5iZFtwQKbwUqnNega9g=; b=IcJTwO7m97dzNuyl/B8Q6lQ+rMV+zgdmMzXrm0TkonVKLJBtL7h+Zr/fFnrK/xmnv8 sf15blUV3Bf+FKQc6XskXZCWlTX9mEGo6wooqwFT5avhsskYvq7f4s+0CSs5oQbPMMMp /oKwSwuduhlOq/MlyCbQYbGOrWdnd+/Q1HqfnnUIzlf7MEbRyEtltVt2Xc/PG1PnW642 qgIYVYTW7SHkETgBDB8sOphTb9TWHy6i4gEdrzZSttoW4bKv+uFcIKy57P0Nh/6Rf/w1 W8dBqb6gKsNHLY+l6nUueu2oyVetPsVkT9zYowgwKC6x7fWyfvVXiITedkZP0P0b2OAk BbTQ== X-Gm-Message-State: AOJu0YxrQqOdv+/qHvNbPMFv6T3CPDyTyEOeysxlKk5rjLwbYtDT+TrS dweR/wYxVTLetf7TH+5lfhNQJGS1na11TA== X-Received: from xllamas.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5070]) (user=cmllamas job=sendgmr) by 2002:a05:6a00:80d2:b0:68f:f868:a4fb with SMTP id ei18-20020a056a0080d200b0068ff868a4fbmr454834pfb.5.1698951642845; Thu, 02 Nov 2023 12:00:42 -0700 (PDT) Date: Thu, 2 Nov 2023 18:59:07 +0000 In-Reply-To: <20231102185934.773885-1-cmllamas@google.com> Mime-Version: 1.0 References: <20231102185934.773885-1-cmllamas@google.com> X-Mailer: git-send-email 2.42.0.869.gea05f2083d-goog Message-ID: <20231102185934.773885-7-cmllamas@google.com> Subject: [PATCH 06/21] binder: fix comment on binder_alloc_new_buf() return value From: Carlos Llamas To: Greg Kroah-Hartman , "=?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?=" , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Carlos Llamas , Suren Baghdasaryan Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 02 Nov 2023 12:01:23 -0700 (PDT) Update the comments of binder_alloc_new_buf() to reflect that the return value of the function is now ERR_PTR(-errno) on failure. No functional changes in this patch. Cc: stable@vger.kernel.org Fixes: 57ada2fb2250 ("binder: add log information for binder transaction failures") Signed-off-by: Carlos Llamas --- drivers/android/binder_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c index cd720bb5c9ce..0e8312f4b771 100644 --- a/drivers/android/binder_alloc.c +++ b/drivers/android/binder_alloc.c @@ -558,7 +558,7 @@ static struct binder_buffer *binder_alloc_new_buf_locked( * is the sum of the three given sizes (each rounded up to * pointer-sized boundary) * - * Return: The allocated buffer or %NULL if error + * Return: The allocated buffer or %ERR_PTR(-errno) if error */ struct binder_buffer *binder_alloc_new_buf(struct binder_alloc *alloc, size_t data_size, -- 2.42.0.869.gea05f2083d-goog