Skip to content

Commit 59d42cd

Browse files
Dan Carpentertorvalds
authored andcommitted
drivers/vlynq/vlynq.c: fix another resource size off by 1 error
We fixed the call to request_mem_region() in commit 3354f73 ("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>
1 parent a79530e commit 59d42cd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/vlynq/vlynq.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,8 @@ static int vlynq_remove(struct platform_device *pdev)
762762

763763
device_unregister(&dev->dev);
764764
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);
766767

767768
kfree(dev);
768769

0 commit comments

Comments
 (0)