Skip to content

Commit

Permalink
x86: fix typo in recent find_vma_prev purge
Browse files Browse the repository at this point in the history
It turns out that test-compiling this file on x86-64 doesn't really
help, because much of it is x86-32-specific.  And so I hadn't noticed
the slightly over-eager removal of the 'r' from 'addr' variable despite
thinking I had tested it.

Signed-off-by: Linus "oopsie" Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Linus Torvalds committed Mar 7, 2012
1 parent 097d591 commit 55062d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/hugetlbpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
* Lookup failure means no vma is above this address,
* i.e. return with success:
*/
vma = find_vma(mm, add);
vma = find_vma(mm, addr);
if (!vma)
return addr;

Expand Down

0 comments on commit 55062d0

Please sign in to comment.