projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a3c6b2
)
serial: bfin_5xx: fix off-by-one with resource size
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 16 Jun 2011 22:31:42 +0000
(18:31 -0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 1 Jul 2011 22:35:46 +0000
(15:35 -0700)
This doesn't cause any real bugs, but it should still be fixed.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/serial/bfin_5xx.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/bfin_5xx.c
b/drivers/tty/serial/bfin_5xx.c
index
9b1ff2b
..
957135a
100644
(file)
--- a/
drivers/tty/serial/bfin_5xx.c
+++ b/
drivers/tty/serial/bfin_5xx.c
@@
-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;