mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
UPSTREAM: coresight: Potential uninitialized variable in probe()
(Upstream commit0530ef6b41). The "drvdata->atclk" clock is optional, but if it gets set to an error pointer then we're accidentally return an uninitialized variable instead of success. Fixes:78e6427b4e("coresight: funnel: Support static funnel") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20190620221237.3536-6-mathieu.poirier@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Bug: 140266694 Bug: 151593592 Signed-off-by: Yabin Cui <yabinc@google.com> Change-Id: Ie1f1a45b66f351b53c440d788888c201cb4bce7f
This commit is contained in:
committed by
Alistair Delva
parent
3b543839dd
commit
73bab97706
@@ -262,6 +262,7 @@ static int funnel_probe(struct device *dev, struct resource *res)
|
||||
}
|
||||
|
||||
pm_runtime_put(dev);
|
||||
ret = 0;
|
||||
|
||||
out_disable_clk:
|
||||
if (ret && !IS_ERR_OR_NULL(drvdata->atclk))
|
||||
|
||||
Reference in New Issue
Block a user