projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ca8614
)
drm/sun4i: hdmi: Fix an error handling path in 'sun4i_hdmi_bind()'
author
Christophe JAILLET
<
[email protected]
>
Sun, 18 Mar 2018 22:48:09 +0000
(23:48 +0100)
committer
Maxime Ripard
<
[email protected]
>
Tue, 20 Mar 2018 10:50:26 +0000
(11:50 +0100)
If we can not allocate the HDMI encoder regmap, we still need to free some
resources before returning.
Fixes: 4b1c924b1fc1 ("drm/sun4i: hdmi: create a regmap for later use")
Reviewed-by: Chen-Yu Tsai <
[email protected]
>
Signed-off-by: Christophe JAILLET <
[email protected]
>
Signed-off-by: Maxime Ripard <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/14c42391e1b562c7495bda6ad6fa1d24ec8dc052.1521413031.git.christophe.jaillet@wanadoo.fr
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
index 500b6fb3e0284d2fdfc71265a64f0d5b51fe4f99..d2839727bb0b3f7e9917abdb361d675b580a47e8 100644
(file)
--- a/
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
+++ b/
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c
@@
-538,7
+538,8
@@
static int sun4i_hdmi_bind(struct device *dev, struct device *master,
&sun4i_hdmi_regmap_config);
if (IS_ERR(hdmi->regmap)) {
dev_err(dev, "Couldn't create HDMI encoder regmap\n");
- return PTR_ERR(hdmi->regmap);
+ ret = PTR_ERR(hdmi->regmap);
+ goto err_disable_mod_clk;
}
ret = sun4i_tmds_create(hdmi);