Skip to content

Commit 304b2ee

Browse files
committed
Rollup on dsi_attach error
1 parent 1d9793b commit 304b2ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

driver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,7 @@ def generate_probe(p: Panel, options: Options) -> str:
417417
ret = mipi_dsi_attach(dsi);
418418
if (ret < 0) {
419419
dev_err(dev, "Failed to attach to DSI host: %d\\n", ret);
420+
drm_panel_remove(&ctx->panel);
420421
return ret;
421422
}
422423

0 commit comments

Comments
 (0)