From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 BC5A3426699 for ; Mon, 11 May 2026 17:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778521844; cv=none; b=BCEsmdsa1IWRFi8nGquyHW7jwAdUf718x9AhIIfDqmauGfxKDubBs0rPZFmR3LyBr7Uxx3UTW4XM+DAdTmpxQn9hsz9Zy20j4uKyxW6x4ZOOd8o7s1E5SwVf+qILsIYs6PNLsNMUUrMcL5fJ7LZwntjsYAtq/XbTrgZALVXh8ec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778521844; c=relaxed/simple; bh=EaXaYua7o4ahXyCXfZzAWBelHiLbxOXKh9bHYpF/9S4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=k/+f/nafDIO3j/MWMgl0WQHhsGXD6YqpG6ev4YYQRlUhEXP/BQMtqr9oJeOQIY8/OGKo8u+r4REMvFs/bFRKsB7hPwVZlk//0iUFAGy10j3II33zYcLQyFv3G5EjY5VW8S63XjTIyleeNWUFDBsRNdSXEGdeZIrJ5e5K1YJp/a0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hEgK6tOk; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=uNLcGs01; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hEgK6tOk"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="uNLcGs01" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778521841; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ofDBK4Z4CQaKLzXeuBDhGcCVh8gyfisonJllNsg6JRU=; b=hEgK6tOkDNd9siqt0UyUtyIpEUzsdkTacuL6uo8pHSdWZAB/eqonmGBTo0BXrQJY6JH3ls xHitjtyWZ+Oy2iT2u75Alqv+38DpLZsbRbK/DjsSTO4YkfMnstoK63fT9nzMWfsaOHXGi6 XwqKyIH1bJquz58cbeJkXSynDQJXCCg= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-76-U27ZoNxNMtWKZJTRtdYkyw-1; Mon, 11 May 2026 13:50:40 -0400 X-MC-Unique: U27ZoNxNMtWKZJTRtdYkyw-1 X-Mimecast-MFC-AGG-ID: U27ZoNxNMtWKZJTRtdYkyw_1778521840 Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-8ae752c5273so95779456d6.2 for ; Mon, 11 May 2026 10:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1778521840; x=1779126640; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=ofDBK4Z4CQaKLzXeuBDhGcCVh8gyfisonJllNsg6JRU=; b=uNLcGs01WERApYYruipjPhPDnoc8KIqGmUsD53qsmx4Rk1KZkY2fE2lRiQDMidKZ4I 5kHCBt+Qaw4L6+sO8//KufX2JV7H+XWR4YOTWvkYOk46Z2YiIGUyb6nXv/WWj5zQ0whR jmxXSYYZkimglo2gcySb7q17b4LeM9RS7eg7afuHTbgwHniBapDNc5ZICChLnjEfDFUC CKXwMrxA9Xae6xDtfEsTcdi8ht18BT842XYylAzRXiNCj3b/Kbb49o+RqZeoQZLY70YU cjksPo1ypF31kKQZA2p49Q7zuqrcMNQCkQ00yMb3bEq+2QD5NnkIi374whI9j/GF2gKZ gdfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778521840; x=1779126640; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ofDBK4Z4CQaKLzXeuBDhGcCVh8gyfisonJllNsg6JRU=; b=eP8daS2obyShSx3eMWm9k6Tt8qR2+YjY2Ye/Qb132Wryf14bsrBVeSAprPdMmcd2GB BiKultempxADeXTan4MUXt/MxGYfUI2s77zc5K6xyXAibrbHVgD+K2p9AdAqN8e40qW8 kITcLJb17n8GusKKfzjG0nYWHVp9b47otZ1AlpmpNT0xhvjj1tEiPZMTowIDfDNxA8bx uEWkQhNQZxAudkTmF2K6sMmWcFz4UzGqBEXBqPBxKq1BJ4qmvEH26u/prUt6F0se4h5r rTzdAVTwahcfUIDcN4ywL2vLJ8z8nqQiAnA86CTquOPRp/KxgL8+985jBizv/FT0Dhtk h7yA== X-Forwarded-Encrypted: i=1; AFNElJ9MbCiZm3y9+o88RNgTz03k2rhHPPJOAqKsyhoqO8oGzWpvs3E9t7qeU26VZjlKEGnGDeHkMLz/p/1XVCs=@vger.kernel.org X-Gm-Message-State: AOJu0Yyb/SlticW444T0lEtBwv3nJ/B4wfmKdVxVU1VXH/WrxKt1/tX9 abk5VSBoy1jGnsiyaU+Jy7YqRwPoWeTGT1aAEhz0Xc+Ob8lDUTQKFOhB3QhCB/8s7nKRBW7cl5T Q7frQBeab/q3M35Al8uoK1vx7KS/NXKTmRL4m4+lK/uFrR6UPY6IWB7AMD5mirMXg4g== X-Gm-Gg: Acq92OFzW/sJSrBcl1w+9I10fjFKKCQL2yVesaeamE5ySTz4pZRmzajNG0SQ6Mr6PmP HOWIhcrJSZK8+pZ+0LlursUuil19J7RyAapaOT3HpnLxXLsyAX+3tRNrjFn5buuPE6PmadiTCBN XUa5oH9NpKFIWDNTA8F9osJsWiJ9BN2mnEbL2Ath3vCSXQzvV/Subr7STHbpDAKdmBPmVXImDqQ q+qBPxoVDIRo1q8zziwbcUVYImvd0dlGhdHNHCuA7eTBOztjZ4A0+2QtqTgMcySaFSwCyaQIZpn vPfWwTqD8xSr65XiH6fQ45n8GWIx+wZbaikp56w0hZr7rOE62tpPUMtchCIAK9Iw63d/v08AyQb FdOBaEfXYBQkt6sGVxsxQk2pl0OYJ/Ps= X-Received: by 2002:a05:6214:76d:b0:8ae:61bb:95e3 with SMTP id 6a1803df08f44-8bc44ba4e17mr389085746d6.36.1778521840027; Mon, 11 May 2026 10:50:40 -0700 (PDT) X-Received: by 2002:a05:6214:76d:b0:8ae:61bb:95e3 with SMTP id 6a1803df08f44-8bc44ba4e17mr389085326d6.36.1778521839492; Mon, 11 May 2026 10:50:39 -0700 (PDT) Received: from redhat.com ([2600:382:7726:2102:3d38:15e1:b99c:6000]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8bf39c7e032sm99839816d6.32.2026.05.11.10.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2026 10:50:38 -0700 (PDT) Date: Mon, 11 May 2026 13:50:36 -0400 From: Brian Masney To: Min zhang Cc: Wei Xu , Michael Turquette , Stephen Boyd , Philipp Zabel , Jiancheng Xue , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] clk: hisilicon: reset: Use devm_kzalloc to initialize hisi_reset_controller Message-ID: References: <20260511053216.538035-1-zhangmin2026@yeah.net> <20260511170415.19848-1-zhangmin2026@yeah.net> 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: <20260511170415.19848-1-zhangmin2026@yeah.net> User-Agent: Mutt/2.3.1 (2026-03-20) Hi Min, On Tue, May 12, 2026 at 01:04:14AM +0800, Min zhang wrote: > Using devm_kmalloc() does not zero-initialize the allocated structure. > Uninitialized members in struct hisi_reset_controller may contain garbage > data, which can cause reset_controller_register() to fail unexpectedly. > > Replace devm_kmalloc() with devm_kzalloc() to ensure all structure fields > are properly zero-initialized. > > Fixes: 97b7129cd2afb ("reset: hisilicon: change the definition of hisi_reset_init") > > Reviewed-by: Brian Masney > Signed-off-by: Min zhang There's no newline between the Fixes and the other tags. Take a look at 'git log' and look at the other commits. Sorry for the trivial ask, but it's important to keep things like this consistent across the kernel. Brian