From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4E9016B391 for ; Thu, 22 Aug 2024 07:39:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724312388; cv=none; b=lzLidddtSjs7siAOoeWyYd1q0BN/NBrXGldZmQHOxXrlO+87rlBtuSYcPol3ETMEjzQkT50dkuUJJT6KsyyivmyJUrqv1dLk7otRxKFoqsAkA381+shR/BLwnCLbVSMly7uO9CK7PXB2evBthKoasboA6WYprgORt6eU5u0+WfI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724312388; c=relaxed/simple; bh=0625ThzK5zTHjNczZ23OpAA40ALjr//ZGbsohg+iaHQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cDvvtePr1wZlDvW/0nHK7Yzo8nSGTkMMOcRT/Z8UYIcVdPMguvTZfcG/PKr0l6Ey1Y0WzwbYlN9eUlqfqCsH34CxtgBJwvp2KE3ttaEov+1ZJOLMmIjXwVWMMRyWzA8H12WGsfBcwpO4G2EslMaqBPABQJqpdIlLaPgdc066NsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rosiQb9J; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rosiQb9J" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC72BC4AF09; Thu, 22 Aug 2024 07:39:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724312388; bh=0625ThzK5zTHjNczZ23OpAA40ALjr//ZGbsohg+iaHQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rosiQb9Jqx8hTP2ZUBJuzppRq0iVIBnGbHdhCqP7eLFIKTgPvPFJvBYgpC7hXNJ1J VW5OV9n69wpHGmZQVI6VtCkPDNlg76EYL35GAwzuGFELzp1JrDPfMudswZKTsIplCl T5U2L3le36uPQFsJsmMJ9GqNeCbRurs+WicUQL4c= Date: Thu, 22 Aug 2024 15:39:31 +0800 From: Greg Kroah-Hartman To: Andy Shevchenko Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Zijun Hu Subject: Re: [PATCH v1 0/5] driver core: fw_devlink: Clean up strings and mutex usages Message-ID: <2024082222-number-amends-e2a6@gregkh> References: <20240821154839.604259-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240821154839.604259-1-andriy.shevchenko@linux.intel.com> On Wed, Aug 21, 2024 at 06:48:18PM +0300, Andy Shevchenko wrote: > Replace strlen() + kmalloc() + snprintf() by kasprintf() ond other > string handling improvements. > > Use guard() / scoped_guard() to handle fw_devlink mutex. Nice clean ups, thanks!