Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5475
b: refs/heads/master
c: 761a3ac
h: refs/heads/master
i:
  5473: 0babf51
  5471: 0f5e30b
v: v3
  • Loading branch information
Jon Smirl authored and Linus Torvalds committed Jul 29, 2005
1 parent 610b9d9 commit f6b594a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e96e2f148060330f6178b502574dcb81eb7318bf
refs/heads/master: 761a3ac08c63718dacde12aaf0ec6d6760e8c2b7
4 changes: 3 additions & 1 deletion trunk/drivers/pci/rom.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ void __iomem *pci_map_rom(struct pci_dev *pdev, size_t *size)
image += readw(pds + 16) * 512;
} while (!last_image);

*size = image - rom;
/* never return a size larger than the PCI resource window */
/* there are known ROMs that get the size wrong */
*size = min((size_t)(image - rom), *size);

return rom;
}
Expand Down

0 comments on commit f6b594a

Please sign in to comment.