Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2667172rdg; Mon, 16 Oct 2023 10:59:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiY4oF4GvaEYHDeoRn0mrCv1VDohuIu5AGX42kTOG0keYV2vnhUzgyEGPh+rSrMzo0nlic X-Received: by 2002:a05:6358:e87:b0:150:8ba9:4d with SMTP id 7-20020a0563580e8700b001508ba9004dmr230716rwg.3.1697479156823; Mon, 16 Oct 2023 10:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697479156; cv=none; d=google.com; s=arc-20160816; b=GY++qS8JZBTymOxKAOTGbkXPre9ntv4mTfhEr+mTPD3+HbQFnJtGTPTczKxsxAhrB8 +cj4FI/dCdhEBpAh1j/iab32YYZmq98Q94Ifc3E+iWMm24fl/Xg0FbRuTDEsgfbk1qNm D4n0YyMLH727MV2fFu+werCscpQIE5f4PzVpeVcLbaVNEaCWurWKiFlhd514/kYvB7Wf tuH2FZUr5vhjHdny/IyQu/TJgTwiJ9qqwvW+R/ZZiX8pK1S8ZSM/0nZu9W2flax24Izt ApU4K829OkHcIfT3dTB0hnabA7XgQsknCIlArrGFICKpBvNHdum5tbX5xneptOddEGT+ VDWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m6UqEUPgd++mCUChaxvyZOomlBLzBtDZIHZZaSO6LwE=; fh=cUnhCBMNg6Q+R544662kDSBm87Le2xXrP4ZqCbmHt6M=; b=S9UjEgzc2PrsqxTNWDnxxR9Sroz5PoLKuQI5Gn/yc3eq1u4L6gjIA/eOGk6XrpzNQP y+5tofnYcVDWl3wdX5wb6hMMj8iB4pzXQNvH8BUbAOKUtlmhvKMb5JGejYlWGKQQWlAj Bb+KgNvggKJeD1C51x0wZTfpWkT4huQgYGfm1ICdj4A8PJoapf671Bj+2ttl89khaByq uJbLL8N9C5g6rkLyMtkhr5QUGTpKlYNC9RamgO47YhpH85KP2yIptIm7qBw1F6gH8UMG vDW5RRjT5LkIxkLDXhOHoQHAoh8T7PWzs+YKKu2SBFELcUUmdBSGasvmo2M0A3MQ02XT el3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WLiBB2Pe; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y9-20020aa79ae9000000b0068fe0f46f27si269881pfp.171.2023.10.16.10.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 10:59:16 -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=@linuxfoundation.org header.s=korg header.b=WLiBB2Pe; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 95F52808287E; Mon, 16 Oct 2023 10:59:14 -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 S233948AbjJPR66 (ORCPT + 99 others); Mon, 16 Oct 2023 13:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232198AbjJPR64 (ORCPT ); Mon, 16 Oct 2023 13:58:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 745C89F for ; Mon, 16 Oct 2023 10:58:55 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6DCCC433C8; Mon, 16 Oct 2023 17:58:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697479135; bh=nJdAek3aZycrgMRdKYtUObmKFrKh7KF0eBAThEzF7Ho=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WLiBB2PeXGi7MHr1L86TAUfGDT3KusatDeMchxwb3O1l72p3IXnbY5RLcp3gZ1rLh WS0jHxrmNqgqAG16XmdgHtl3UHsXnswRR1XWE6PeK54gaygsOQCrUkJA7/q3kKMe98 2Ij+QrDEgkyeDDiyPFmLGwL6f/y2V9R3hBnaamD4= Date: Mon, 16 Oct 2023 19:47:41 +0200 From: Greg KH To: Zhang Shurong Cc: heikki.krogerus@linux.intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: typec: retimer: Check dev_set_name() return value Message-ID: <2023101630-tiger-sizable-050f@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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]); Mon, 16 Oct 2023 10:59:14 -0700 (PDT) On Sat, Oct 14, 2023 at 05:24:53PM +0800, Zhang Shurong wrote: > It's possible that dev_set_name() returns -ENOMEM. > We fix this by catching the error and handling it. > > Fixes: ddaf8d96f93b ("usb: typec: Add support for retimers") > Signed-off-by: Zhang Shurong > --- > drivers/usb/typec/retimer.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) How was this found? How was this tested?