projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c93ccf
)
soc/tegra: fuse: Clear fuse->clk on driver probe failure
author
Dmitry Osipenko
<digetx@gmail.com>
Mon, 2 Aug 2021 22:13:33 +0000
(
01:13
+0300)
committer
Thierry Reding
<treding@nvidia.com>
Wed, 11 Aug 2021 09:54:48 +0000
(11:54 +0200)
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 <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/fuse/fuse-tegra.c
patch
|
blob
|
history
diff --git
a/drivers/soc/tegra/fuse/fuse-tegra.c
b/drivers/soc/tegra/fuse/fuse-tegra.c
index
3d9da3d
..
2434c57
100644
(file)
--- a/
drivers/soc/tegra/fuse/fuse-tegra.c
+++ b/
drivers/soc/tegra/fuse/fuse-tegra.c
@@
-246,6
+246,7
@@
static int tegra_fuse_probe(struct platform_device *pdev)
return 0;
restore:
+ fuse->clk = NULL;
fuse->base = base;
return err;
}