diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-01-23 15:54:07 -0800 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-11-19 23:44:31 +0100 |
commit | c5988e0e5c0858bc916f5a15a066cc0d3d614e93 (patch) | |
tree | 9d84f9446611d1868713d9d48e65208614a14322 /drivers/vlynq | |
parent | 181bbf73ff2088b53b1c9978f372225689c8b6e2 (diff) | |
download | lwn-c5988e0e5c0858bc916f5a15a066cc0d3d614e93.tar.gz lwn-c5988e0e5c0858bc916f5a15a066cc0d3d614e93.zip |
drivers/vlynq/vlynq.c: fix another resource size off by 1 error
commit 59d42cd43c7335a3a8081fd6ee54ea41b0c239be upstream.
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/vlynq')
-rw-r--r-- | drivers/vlynq/vlynq.c | 3 |
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) device_unregister(&dev->dev); iounmap(dev->local); - release_mem_region(dev->regs_start, dev->regs_end - dev->regs_start); + release_mem_region(dev->regs_start, + dev->regs_end - dev->regs_start + 1); kfree(dev); |