From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-177.mta0.migadu.com (out-177.mta0.migadu.com [91.218.175.177]) (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 08E5D274269 for ; Fri, 28 Feb 2025 16:37:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740760650; cv=none; b=YbefmhEUjFd9t2ImoJjk7/A6h/BoHjxJSclRwXffeK/D+d4Jujf/WefUnm/jOyrYkBm6f9rTAo9yxQS12oY/t08X/5iyDHKmtvcYJcNWkNjxmH7yC9gX7MxKnSeLgWYaC++VgsIe3G5UGlcn3rd4D586amnwKcjuFwPmMi50v/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740760650; c=relaxed/simple; bh=bgjg/hEmlBXv67fTl4fRy81b4dDXu1T6gmhB1dO3WdI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=CYnt5hfnm4s7MHcfltA+JzMxwikC9Q1jnfCShh5uUwVJ/Y33VIsiwkABJtRxRQvzXKWolafz23d6ZGI3skEKxYMbMgKltAmczESkpH+76K/RnCvRWHgVuWLU6Rve5CS7I2ihV6VUS4t2f7PWeABXZ9waX6Rk8OEVKFqz3zIBYJ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=fHOywo9E; arc=none smtp.client-ip=91.218.175.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="fHOywo9E" Message-ID: <64a6131a-79d8-4250-9215-5e565a598424@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1740760635; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=yVrsBw3fKJbseyJjn+B6nGAkxIf2sXzvqUGFkrakjmA=; b=fHOywo9ErC6m0P2jZEnXQ7vgcWmHdqXDSEWMuHjpx8US8oTSv8SFvwhhQGwmXILoZ1sSHW 2L+PDHrt4ebf5xGK0aUX26AV+QieJTdRzSQStv0zR8QJU1A4/yiUM9rFfZs2y+VadKZXIp bcKMq1xV57NluZrX5IoESMTwIhEOJ6s= Date: Fri, 28 Feb 2025 16:37:10 +0000 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH v4 net-next] dpll: Add an assertion to check freq_supported_num To: Jiasheng Jiang , przemyslaw.kitszel@intel.com Cc: arkadiusz.kubalewski@intel.com, davem@davemloft.net, jan.glaza@intel.com, jiri@resnulli.us, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, stable@vger.kernel.org References: <20250228150210.34404-1-jiashengjiangcool@gmail.com> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: <20250228150210.34404-1-jiashengjiangcool@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 28/02/2025 15:02, Jiasheng Jiang wrote: > Since the driver is broken in the case that src->freq_supported is not > NULL but src->freq_supported_num is 0, add an assertion for it. > > Signed-off-by: Jiasheng Jiang Reviewed-by: Vadim Fedorenko