From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Thu, 10 Oct 2019 09:53:35 +0000 Subject: Re: [PATCH] staging: sm750fb: Potential uninitialized field in "pll" Message-Id: <20191010091834.GG20470@kadam> List-Id: References: <20191010043809.27594-1-yzhai003@ucr.edu> In-Reply-To: <20191010043809.27594-1-yzhai003@ucr.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Yizhuo Cc: devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org, Teddy Wang , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Sudip Mukherjee On Wed, Oct 09, 2019 at 09:38:08PM -0700, Yizhuo wrote: > Inside function set_chip_clock(), struct pll is supposed to be > initialized in sm750_calc_pll_value(), if condition > "diff < mini_diff" in sm750_calc_pll_value() cannot be fulfilled, > then some field of pll will not be initialized but used in > function sm750_format_pll_reg(), which is potentially unsafe. > > Signed-off-by: Yizhuo The patch is correct, but it doesn't apply to linux-next any more. Can you re-write it on top of the most recent staging-next and resend? regards, dan carpenter