VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Stefan Richter <stefanr@s5r6.in-berlin.de> 2010-07-23 13:02:54 +0200 committer: Stefan Richter <stefanr@s5r6.in-berlin.de> 2010-07-23 13:36:28 +0200 commit: 0c9ae701ae1caf657326db22d61074b40a747c9d parent: cc550216ae9a2993ef3973464714dc1a39ab1f86
Commit Summary:
firewire: core: fix upper bound of possible CSR allocations
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/firewire/core-transaction.c b/drivers/firewire/core-transaction.c
index 6f225cacbc3d..ca7ca56661e0 100644
--- a/drivers/firewire/core-transaction.c
+++ b/drivers/firewire/core-transaction.c
@@ -543,8 +543,8 @@ int fw_core_add_address_handler(struct fw_address_handler *handler,
 	int ret = -EBUSY;
 
 	if (region->start & 0xffff000000000003ULL ||
-	    region->end   & 0xffff000000000003ULL ||
 	    region->start >= region->end ||
+	    region->end   > 0x0001000000000000ULL ||
 	    handler->length & 3 ||
 	    handler->length == 0)
 		return -EINVAL;