Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72988
b: refs/heads/master
c: 48d5845
h: refs/heads/master
v: v3
  • Loading branch information
Grant Likely authored and Jeff Garzik committed Nov 1, 2007
1 parent a1fd1cc commit c038a52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 644fdf9b08e51e172d54cb500473470edb4ba1e0
refs/heads/master: 48d58459fe991e48bf7e6638a0ded0f8cbd2fa3b
4 changes: 2 additions & 2 deletions trunk/drivers/net/fec_mpc52xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,9 @@ mpc52xx_fec_probe(struct of_device *op, const struct of_device_id *match)
"Error while parsing device node resource\n" );
return rv;
}
if ((mem.end - mem.start + 1) != sizeof(struct mpc52xx_fec)) {
if ((mem.end - mem.start + 1) < sizeof(struct mpc52xx_fec)) {
printk(KERN_ERR DRIVER_NAME
" - invalid resource size (%lx != %x), check mpc52xx_devices.c\n",
" - invalid resource size (%lx < %x), check mpc52xx_devices.c\n",
(unsigned long)(mem.end - mem.start + 1), sizeof(struct mpc52xx_fec));
return -EINVAL;
}
Expand Down

0 comments on commit c038a52

Please sign in to comment.