Skip to content

Commit

Permalink
drivers/vlynq/vlynq.c: fix another resource size off by 1 error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Florian Fainelli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Dan Carpenter authored and torvalds committed Jan 24, 2014
1 parent a79530e commit 59d42cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/vlynq/vlynq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 59d42cd

Please sign in to comment.