Skip to contentSkip to conversation

+ drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jan 13, 2014

lore
Share & tools
lore
#0 lore raw

Subject: + drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 13 Jan 2014 13:36:21 -0800

The patch titled
Subject: drivers/vlynq/vlynq.c: fix another resource size off by 1 error
has been added to the -mm tree. Its filename is
drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: drivers/vlynq/vlynq.c: fix another resource size off by 1 error

We fixed the call to request_mem_region() patch 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.

---

 drivers/vlynq/vlynq.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/vlynq/vlynq.c renamed from drivers/vlynq/vlynq.c~drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error +2 -1
diff -puN drivers/vlynq/vlynq.c~drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error drivers/vlynq/vlynq.c
@@ -762,7 +762,8 @@ static int vlynq_remove(struct platform_
 
 	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);
 

_

Patches currently in -mm which might be from [email protected] are

ocfs2-use-the-new-dlm-operation-callbacks-while-requesting-new-lockspace.patch ocfs2-use-the-new-dlm-operation-callbacks-while-requesting-new-lockspace-fix.patch drivers-scsi-megaraid-megaraid_mmc-missing-bounds-check-in-mimd_to_kioc.patch drivers-block-paride-pgc-underflow-bug-in-pg_write.patch fs-compat_ioctlc-fix-an-underflow-issue-harmless.patch drivers-mailbox-omap-make-mbox-irq-signed-for-error-handling.patch drivers-vlynq-vlynqc-fix-another-resource-size-off-by-1-error.patch checkpatch-warn-only-on-space-before-semicolon-at-end-of-line.patch linux-next.patch