mirror of
https://github.com/torvalds/linux.git
synced 2026-10-26 20:46:02 +01:00
aspeed_gfx_load() enables the display clock without checking the return
value and never disables it on probe failure or removal. devm_clk_get()
only releases the clock reference, leaving the enable unbalanced.
Use devm_clk_get_enabled() to handle enable failures and automatically
disable and unprepare the clock on probe failure or removal.
This issue was identified during our ongoing static-analysis research
while reviewing kernel code.
Fixes:
|
||
|---|---|---|
| .. | ||
| aspeed_gfx_crtc.c | ||
| aspeed_gfx_drv.c | ||
| aspeed_gfx_out.c | ||
| aspeed_gfx.h | ||
| Kconfig | ||
| Makefile | ||