提交 b29330d8 编写于 作者: A Alexander Sverdlin 提交者: Greg Kroah-Hartman

serial: 8250: of: Correct of_platform_serial_setup() error handling

Don't dispose IRQ mapping before it has been created.

Fixes: aa959474 ("serial: 8250_of: Add IO space support")
Signed-off-by: NAlexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 b819e4ab
......@@ -124,7 +124,7 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
dev_warn(&ofdev->dev, "unsupported reg-io-width (%d)\n",
prop);
ret = -EINVAL;
goto err_dispose;
goto err_unprepare;
}
}
port->flags |= UPF_IOREMAP;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册