Skip to content

Commit dceddee

Browse files
committed
Merge tag 'stratix10_rsu_fix_for_v7.0' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux into work-linus
Dinh writes: firmware: stratix10-rsu: fix NULL pointer dereference when RSU is disabled - Fix a kernel panic that happens in the driver when the First Stage Boot Loader has not enabled the Remote System Update(RSU). * tag 'stratix10_rsu_fix_for_v7.0' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux: firmware: stratix10-rsu: Fix NULL pointer dereference when RSU is disabled
2 parents 6de23f8 + c45f726 commit dceddee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/firmware/stratix10-rsu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,9 @@ static int stratix10_rsu_probe(struct platform_device *pdev)
768768
rsu_async_status_callback);
769769
if (ret) {
770770
dev_err(dev, "Error, getting RSU status %i\n", ret);
771+
stratix10_svc_remove_async_client(priv->chan);
771772
stratix10_svc_free_channel(priv->chan);
773+
return ret;
772774
}
773775

774776
/* get DCMF version from firmware */

0 commit comments

Comments
 (0)