From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Wed, 3 Jan 2018 12:33:50 +0100 Subject: [U-Boot] [PATCH v2 1/2] video: ipu: Fix dereferencing NULL pointer problem In-Reply-To: <20180103112049.4504-1-agust@denx.de> References: <1514877937-24144-1-git-send-email-peng.fan@nxp.com> <20180103112049.4504-1-agust@denx.de> Message-ID: <20180103123350.07c9a30f@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, 3 Jan 2018 12:20:49 +0100 Anatolij Gustschin agust at denx.de wrote: > From: Peng Fan > > The clk_set_rate function dereferences the clk pointer without > checking whether it is NULL. This may cause problem when clk is NULL. > > Signed-off-by: Peng Fan > Signed-off-by: Anatolij Gustschin > --- > Changes in v2: > - move the NULL check to top of function > > drivers/video/ipu_common.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) applied to u-boot-video/master, thanks! -- Anatolij