Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305412
b: refs/heads/master
c: 74bc491
h: refs/heads/master
v: v3
  • Loading branch information
Shuah Khan authored and Ingo Molnar committed May 21, 2012
1 parent 31239fb commit 686c5fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: ab7b64e9ee1e930ffe9d7f5b5eebe618a3b3a03b
refs/heads/master: 74bc491795420254f8b9c782ec654c9ba005d3ac
8 changes: 5 additions & 3 deletions trunk/arch/x86/kernel/pci-calgary_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,8 +1479,9 @@ int __init detect_calgary(void)
static int __init calgary_parse_options(char *p)
{
unsigned int bridge;
unsigned long val;
size_t len;
char* endp;
ssize_t ret;

while (*p) {
if (!strncmp(p, "64k", 3))
Expand Down Expand Up @@ -1511,10 +1512,11 @@ static int __init calgary_parse_options(char *p)
++p;
if (*p == '\0')
break;
bridge = simple_strtoul(p, &endp, 0);
if (p == endp)
ret = kstrtoul(p, 0, &val);
if (ret)
break;

bridge = val;
if (bridge < MAX_PHB_BUS_NUM) {
printk(KERN_INFO "Calgary: disabling "
"translation for PHB %#x\n", bridge);
Expand Down

0 comments on commit 686c5fb

Please sign in to comment.