projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge ../linux-2.6
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
net
/
fs_enet
/
mac-fec.c
diff --git
a/drivers/net/fs_enet/mac-fec.c
b/drivers/net/fs_enet/mac-fec.c
index 2e8f444696999312562430600ecb55d4c0f096aa..3dad69dfdb2ccd90c407837906d085fdca42cbf2 100644
(file)
--- a/
drivers/net/fs_enet/mac-fec.c
+++ b/
drivers/net/fs_enet/mac-fec.c
@@
-144,6
+144,8
@@
static int do_pd_setup(struct fs_enet_private *fep)
/* Fill out IRQ field */
fep->interrupt = platform_get_irq_byname(pdev,"interrupt");
+ if (fep->interrupt < 0)
+ return -EINVAL;
r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "regs");
fep->fec.fecp =(void*)r->start;