aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vlynq/vlynq.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-01-23 18:54:07 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-23 19:36:55 -0500
commit59d42cd43c7335a3a8081fd6ee54ea41b0c239be (patch)
treed04b9abdc88b0adbccb19d4bd7dd0881745197bd /drivers/vlynq/vlynq.c
parenta79530e4d8c8ef2bece88f8dab680e541162f010 (diff)
drivers/vlynq/vlynq.c: fix another resource size off by 1 error
We fixed the call to request_mem_region() in commit 3354f73b24c6 ("drivers/vlynq/vlynq.c: fix resource size off by 1 error"). But we need to fix the call the release_mem_region() as well. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: Florian Fainelli <florian@openwrt.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/vlynq/vlynq.c')
-rw-r--r--drivers/vlynq/vlynq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/vlynq/vlynq.c b/drivers/vlynq/vlynq.c
index 7b07135ab26e..c0227f9418eb 100644
--- a/drivers/vlynq/vlynq.c
+++ b/drivers/vlynq/vlynq.c
@@ -762,7 +762,8 @@ static int vlynq_remove(struct platform_device *pdev)
762 762
763 device_unregister(&dev->dev); 763 device_unregister(&dev->dev);
764 iounmap(dev->local); 764 iounmap(dev->local);
765 release_mem_region(dev->regs_start, dev->regs_end - dev->regs_start); 765 release_mem_region(dev->regs_start,
766 dev->regs_end - dev->regs_start + 1);
766 767
767 kfree(dev); 768 kfree(dev);
768 769