mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 06:10:45 -04:00
serial: 8250: of: Correct of_platform_serial_setup() error handling
Don't dispose IRQ mapping before it has been created.
Fixes: aa9594740 ("serial: 8250_of: Add IO space support")
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b819e4aba0
commit
b29330d829
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user