Skip to content

Commit a65a4ea

Browse files
digetxthierryreding
authored andcommitted
soc/tegra: fuse: Clear fuse->clk on driver probe failure
The fuse->clk must be cleared if FUSE driver fails to probe, otherwise tegra_fuse_readl() will crash. It's unlikely to happen in practice, nevertheless let's correct it for completeness. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 9c93ccf commit a65a4ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/soc/tegra/fuse/fuse-tegra.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ static int tegra_fuse_probe(struct platform_device *pdev)
246246
return 0;
247247

248248
restore:
249+
fuse->clk = NULL;
249250
fuse->base = base;
250251
return err;
251252
}

0 commit comments

Comments
 (0)