mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
drivers/vlynq/vlynq.c: fix another resource size off by 1 error
We fixed the call to request_mem_region() in commit 3354f73b24
("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>
This commit is contained in:
parent
a79530e4d8
commit
59d42cd43c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue