Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10732130rwp; Fri, 21 Jul 2023 04:14:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlFIFd0i7u8BM1K87dXBNy+3X1CyUVCsPiR1LDXA2evvJPEAYiSCwt8XtRRMbEDIZuMJsDy+ X-Received: by 2002:a17:906:1098:b0:989:34a0:45b0 with SMTP id u24-20020a170906109800b0098934a045b0mr1459809eju.49.1689938063555; Fri, 21 Jul 2023 04:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689938063; cv=none; d=google.com; s=arc-20160816; b=Ygr5DnRtX+h8yuSyANgW1IGj6AaKy/D0fPa5NFrzK+tdY/Rsw848ZvwsFAPB4B87uy hfTWR/ZboaZjmD4hNftM9gvg1FikpRJOZA/UpEIOz1Qi1QT3R85GIaDXvJ6xxGB+JR5U 9OP2UcLHF+fjq0olkALmIaRva4yvCa2TZYaTJfs4HyvwAGmrtLsVG2+MGrE+Ws4BmOpN T7rpLsWjVUEINk4klVKnQrTIUoU3lL2H5rZKsch89xg25194lcEl9cZ4GXzsnwKWlu2V KsKkJ7fR8RH6uZityRwIcegbj33L6rX8LkzP6EUW/M1T5JWzBuilr1WOKcc0XykGluy3 fZaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=GXarL5+Q/EKBjLS/p+OLGJM4uvh5VwiYGlmzc+O3HZ4=; fh=xkSknU81oTmo2o/sz1Fw8cq0gdIbEGRjQVvq6r4EVxY=; b=jwvX2qSPW+FvmUxVDz5hS9OaxIBIp18hSJ7XfxAb7b3wNHOD6HIvC7WZR94Czg25iz Ftf/4DeiyQgd7mYLvP2jVupCU0s9PVqDIE7u65H6CtLWd+ayd0620W1x7oAePWcz1PZy I85v4yK4R0U8phdcuN43pezg0Y/S+wT0+ZbA9N5QclxKIWBSAi0wC1q0c3Qzmwwqn4wp pD252KjW7Qz+3tC7/ARY/bzlDj1OeU+aGnCKbltneLSma0JLxUJhSfbxaSoiXN8TJiwX 5bb17KaPe1TG/zNe39LzgoIDUclQGvRmoSKG7yFfdbAqBq0AFzSOu0baXk3Qitq8YiPV Ve0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=desLjfO+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a1709062c5400b00993211b85acsi2075743ejh.216.2023.07.21.04.13.59; Fri, 21 Jul 2023 04:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=desLjfO+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbjGUKv1 (ORCPT + 99 others); Fri, 21 Jul 2023 06:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjGUKv0 (ORCPT ); Fri, 21 Jul 2023 06:51:26 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD6B7E6F; Fri, 21 Jul 2023 03:51:24 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-992e22c09edso257279866b.2; Fri, 21 Jul 2023 03:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689936683; x=1690541483; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=GXarL5+Q/EKBjLS/p+OLGJM4uvh5VwiYGlmzc+O3HZ4=; b=desLjfO+CSScMBmxGQim93le7NgAU59DJSjqee+19mooevM3+xsylSY2FbXwcpbmUj BSLHzHgTVeCCov0Pk+4fya82oiY8E3OkjDUZwxLSLnvjPYTeAg4as0SkpsFZq8BJr7Ce TDr7mIoZNQBp/bhzmjaspLc50r+jLYQdCcg/uokOWcsc5Mg8OgRCwbLNYy1pj2m3OlOv NHt4Hd6g6Of05B56+yg5cXJ340U54XBo7CKIct0ergvNIgKPyy97YoMNgIwX2HyZeoym zihLXSUD7EgE2xey3KGESedigybMYvl1T+boN/lyaWvxqexX8uYqxh3oUQGVCLrkoeVu 04eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689936683; x=1690541483; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=GXarL5+Q/EKBjLS/p+OLGJM4uvh5VwiYGlmzc+O3HZ4=; b=cCvet4EDkXETIm+jEBHiYiMmkYiHnuTqkjxB1JKo62W8mcM0cQvQxGFUsz51FIuILQ xCMQoKs8++ZOYsmdsOzKugexPdxl5IKhoNXWmEeXz5TleM4HUbd0fIkbNkBhWDRSIgD+ fEbItAEMiK7pNYasDlWcghvBJbrayElzbB9U2JgiYmbLtfocDnuum1w8e9kJgvRoVfL8 Ksa178JamfoGGjUyuNxPQKYI/RjRwAOUd2ZxKpdxWxnaVhcGHGlEDaz/s0LeFE0BQ/XM oRKgizIuqEBeX7A9nD4qk7de8YO5xYBre407SrG4TsL5YhWlUrt1G0I3PRfOraVSZFbY jELg== X-Gm-Message-State: ABy/qLZFyETJAkyWmObXqiNjOhwXeYILdAasj/Oxxhrz6f3ma2gmQTd2 AE767NlEBTtBaKRjZrQ1+kFqtuVumbhr7FNB X-Received: by 2002:a17:906:3147:b0:994:1844:c7d1 with SMTP id e7-20020a170906314700b009941844c7d1mr1353840eje.13.1689936683044; Fri, 21 Jul 2023 03:51:23 -0700 (PDT) Received: from ?IPv6:2003:f6:ef05:8700:f946:69a3:7954:9ee0? (p200300f6ef058700f94669a379549ee0.dip0.t-ipconnect.de. [2003:f6:ef05:8700:f946:69a3:7954:9ee0]) by smtp.gmail.com with ESMTPSA id dk14-20020a170906f0ce00b009930308425csm2002667ejb.31.2023.07.21.03.51.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 03:51:22 -0700 (PDT) Message-ID: Subject: Re: [PATCH v1 3/8] iio: core: Switch to krealloc_array() From: Nuno =?ISO-8859-1?Q?S=E1?= To: Andy Shevchenko Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen Date: Fri, 21 Jul 2023 12:53:53 +0200 In-Reply-To: References: <20230720205324.58702-1-andriy.shevchenko@linux.intel.com> <20230720205324.58702-4-andriy.shevchenko@linux.intel.com> <65dbc603062018e1cd968caf983512c2cb2039e5.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-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