diff options
| author | John W. Linville <linville@tuxdriver.com> | 2012-09-07 15:07:55 -0400 | 
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-09-07 15:07:55 -0400 | 
| commit | fac805f8c198092de9a2842efd7f5022e2937b18 (patch) | |
| tree | 7557809c373f97a343c427d8fded0696060394ce /drivers/firmware/memmap.c | |
| parent | 2461c7d60f9f3821274e4acf9019cba8b82c94b5 (diff) | |
| parent | f10723841e624c0726c70356b31d91befed01dd6 (diff) | |
| download | olio-linux-3.10-fac805f8c198092de9a2842efd7f5022e2937b18.tar.xz olio-linux-3.10-fac805f8c198092de9a2842efd7f5022e2937b18.zip  | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Diffstat (limited to 'drivers/firmware/memmap.c')
| -rw-r--r-- | drivers/firmware/memmap.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/firmware/memmap.c b/drivers/firmware/memmap.c index adc07102a20..c1cdc923666 100644 --- a/drivers/firmware/memmap.c +++ b/drivers/firmware/memmap.c @@ -98,7 +98,7 @@ static LIST_HEAD(map_entries);  /**   * firmware_map_add_entry() - Does the real work to add a firmware memmap entry.   * @start: Start of the memory range. - * @end:   End of the memory range (inclusive). + * @end:   End of the memory range (exclusive).   * @type:  Type of the memory range.   * @entry: Pre-allocated (either kmalloc() or bootmem allocator), uninitialised   *         entry. @@ -113,7 +113,7 @@ static int firmware_map_add_entry(u64 start, u64 end,  	BUG_ON(start > end);  	entry->start = start; -	entry->end = end; +	entry->end = end - 1;  	entry->type = type;  	INIT_LIST_HEAD(&entry->list);  	kobject_init(&entry->kobj, &memmap_ktype); @@ -148,7 +148,7 @@ static int add_sysfs_fw_map_entry(struct firmware_map_entry *entry)   * firmware_map_add_hotplug() - Adds a firmware mapping entry when we do   * memory hotplug.   * @start: Start of the memory range. - * @end:   End of the memory range (inclusive). + * @end:   End of the memory range (exclusive)   * @type:  Type of the memory range.   *   * Adds a firmware mapping entry. This function is for memory hotplug, it is @@ -175,7 +175,7 @@ int __meminit firmware_map_add_hotplug(u64 start, u64 end, const char *type)  /**   * firmware_map_add_early() - Adds a firmware mapping entry.   * @start: Start of the memory range. - * @end:   End of the memory range (inclusive). + * @end:   End of the memory range.   * @type:  Type of the memory range.   *   * Adds a firmware mapping entry. This function uses the bootmem allocator  |