Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1044167iob; Fri, 13 May 2022 20:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhbJkTzB00IBL2SC41s1ji5H4NitLr2hdEoXdZQ8jy2d6w8ry4JBvjgSY2BhQS1kewVYcZ X-Received: by 2002:a5d:5281:0:b0:20c:d5be:331c with SMTP id c1-20020a5d5281000000b0020cd5be331cmr5992383wrv.9.1652500331850; Fri, 13 May 2022 20:52:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652500331; cv=none; d=google.com; s=arc-20160816; b=ij3PGAhBOQNUjK/8T43eYN36fBGIXGtHo7HDVIVtde/+lGfq9WMFiaMF6Xcqdl05/z eTDHbzAGk2bdlCzSMiwhYI5CQBOi9FDyYWN4SOK3J6ryEOnGW+NXT21xK4+CSwufxxZj VMTcnipYrZNh//u9tJZMaQP3bA2YYz/hUkoj/9wuHTV6q4LfCoyFsqq0ldXohb2MX3MT MYtFtqztj1BvfRj+emQUp+9TYtEgFS1q4Z9X5ANK5Gklu/YFqG0IYXuFm6nq0MKiKpr0 FlcKevEH5F3+FfwDS8fq0gV8iC5x5z9brlXrjLJHIM1CKS85xt0tgnd2H5b5PMRNfru1 QSNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SuMNv1ARZasd7ZdjEVC+rFFOys4tai2c2Cjy+vmZ+Rg=; b=HV/ZNSixMYqRNPQ+7mXXjhpw+xiciNeTPc/JKBZsx0FuD6yAu5vImZEzJqoiN0yM2p rqGKHNcv+mkpkaEyBPXooxHJSNsyzVpj/PhxelS22Z9Q6LUkK3pmGKEDNyUjiRRGGfow GzL1ykDucdoZ69QxfvxzwqVRpUBAU1XWaUOsbFXJ2SILj6rHUUTjT51ijReQKDfFheLi 4WuECVDqB759SfagDm7KAHk+FlXQeZPT6g3mvxjhiJxAzudYBWcgBVPTaricr3knUHKB YpIRDcJwIiV130wSE9cq3SWG2PNlqrBcgTOGgEsEHqRgGcj+YS/RqqY8c3iRRky8+Xw/ ogLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wc+ZaUyr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n10-20020a5d598a000000b0020c55c4544dsi4984160wri.517.2022.05.13.20.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:52:11 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wc+ZaUyr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BAC8647DEBD; Fri, 13 May 2022 17:24:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358428AbiELUto (ORCPT + 99 others); Thu, 12 May 2022 16:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbiELUtn (ORCPT ); Thu, 12 May 2022 16:49:43 -0400 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62F5A2655E2 for ; Thu, 12 May 2022 13:49:42 -0700 (PDT) Received: by mail-yb1-xb29.google.com with SMTP id w187so11985062ybe.2 for ; Thu, 12 May 2022 13:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SuMNv1ARZasd7ZdjEVC+rFFOys4tai2c2Cjy+vmZ+Rg=; b=Wc+ZaUyrF7+Lum9b/zrSBDjtU8WwSRjvp7fS7DRW9uDdn7o6S9vkJdrv/VCwf6LFyb ZqVyz/kvTgfAXi2rUv+dktCrrkhmRAa4w7vMPm7qf8ubfiYsMMserhWw1HWaiXPHBCjf cD0IoFusw/289jeZI8EBJzzG5fEo4P8I/J/tmUKu4mDRL9Hvpf1w0DAkuvVWIcJcQ7LD +e9gas6K1G3mQFmf9kzsjzogzqhXBryHoDT9mP8HqGbZKg9NmOX47fd5l9aN0NdK6F2+ +MEbV9H1knHUyoogYU/f1n669aOnrYHlwamz8lUjNcFi/Zf5fI2HZjwWxE67lvrXf6zp ijXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SuMNv1ARZasd7ZdjEVC+rFFOys4tai2c2Cjy+vmZ+Rg=; b=AOXtG0x6XqzUDedqXTfesxDu/WtVmcsvzgdM2z9AvTbvYv8ApzODMdve5SX28S0VYu wa0bWB324A1vF88e2FH8IAeQSHNQDYB7mWzt4K/QzDRt66qpvAVAOhZ7mfNZLTArv139 iDqr27SNG4roN40VwLJNGC6thUKx7u+ypRvzPcy4oyGhUrqeYlPTn2TWQBGoPJ+6Ixel QM/dvYLn25k2dZObSWHLAOHXD/IG4lCc4w1MXA036m0s/AfwLdJex8nZ/DJh1TBaXoIO 1jQ8adaMb9gq0tjJsyBzxfMv+RgXb+0cf2UuuwrRC1ZLI5Y1D++HVpz9BZx4nmrXvM3g bIxQ== X-Gm-Message-State: AOAM533eNesruok3+SBdN9fzfC3HLXFj4dvGGP5UCK1aTg0le+bSoVHd a9BCf+36uv3LCgP7ltsvw/JEtAe1R1x/aM7X23KzphJTJvXk7Q== X-Received: by 2002:a25:aa94:0:b0:648:62f2:ef4e with SMTP id t20-20020a25aa94000000b0064862f2ef4emr1592662ybi.626.1652388581682; Thu, 12 May 2022 13:49:41 -0700 (PDT) MIME-Version: 1.0 References: <20220506022845.26750-1-puyou.lu@gmail.com> In-Reply-To: <20220506022845.26750-1-puyou.lu@gmail.com> From: Linus Walleij Date: Thu, 12 May 2022 22:49:30 +0200 Message-ID: Subject: Re: [PATCH] lib/string_helpers: add allocated strarray to device resource. To: Puyou Lu , Tejun Heo Cc: Andy Shevchenko , Andrew Morton , Kees Cook , Petr Mladek , Guenter Roeck , Chris Down , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 6, 2022 at 4:28 AM Puyou Lu wrote: > This is a must to automatically release strarray when the device > disappears. > > Signed-off-by: Puyou Lu Looks correct to me. Reviewed-by: Linus Walleij (But really Tejun is the one who knows how devres is supposed to be used, added on To: line) Yours, Linus Walleij