Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173475
b: refs/heads/master
c: 9016332
h: refs/heads/master
i:
  173473: 801eed6
  173471: a99da6f
v: v3
  • Loading branch information
Roel Kluin authored and Paul Mundt committed Nov 4, 2009
1 parent 770a7da commit 599231f
Show file tree
Hide file tree
Showing 4 changed files with 4 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: c4b973f532206e1a67b1beae654b44c8be26fc44
refs/heads/master: 9016332014404ae1dca7198f93804ac67ba9e918
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/mach-highlander/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ static unsigned char irl2irq[HL_NR_IRL];

static int highlander_irq_demux(int irq)
{
if (irq >= HL_NR_IRL || !irl2irq[irq])
if (irq >= HL_NR_IRL || irq < 0 || !irl2irq[irq])
return irq;

return irl2irq[irq];
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/boards/mach-r2d/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static unsigned char irl2irq[R2D_NR_IRL];

int rts7751r2d_irq_demux(int irq)
{
if (irq >= R2D_NR_IRL || !irl2irq[irq])
if (irq >= R2D_NR_IRL || irq < 0 || !irl2irq[irq])
return irq;

return irl2irq[irq];
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void __init setup_bootmem_node(int nid, unsigned long start, unsigned long end)
unsigned long bootmem_paddr;

/* Don't allow bogus node assignment */
BUG_ON(nid > MAX_NUMNODES || nid == 0);
BUG_ON(nid > MAX_NUMNODES || nid <= 0);

start_pfn = start >> PAGE_SHIFT;
end_pfn = end >> PAGE_SHIFT;
Expand Down

0 comments on commit 599231f

Please sign in to comment.