Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c365bac authored by Mike Frysinger's avatar Mike Frysinger Committed by Greg Kroah-Hartman
Browse files

serial: bfin_5xx: fix off-by-one with resource size



This doesn't cause any real bugs, but it should still be fixed.

Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5a3c6b25
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1304,8 +1304,7 @@ static int bfin_serial_probe(struct platform_device *pdev)
			goto out_error_free_peripherals;
		}

		uart->port.membase = ioremap(res->start,
			res->end - res->start);
		uart->port.membase = ioremap(res->start, resource_size(res));
		if (!uart->port.membase) {
			dev_err(&pdev->dev, "Cannot map uart IO\n");
			ret = -ENXIO;