projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'xfs-5.11-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux-2.6-microblaze.git]
/
drivers
/
memory
/
jz4780-nemc.c
diff --git
a/drivers/memory/jz4780-nemc.c
b/drivers/memory/jz4780-nemc.c
index
608ae92
..
555f7ac
100644
(file)
--- a/
drivers/memory/jz4780-nemc.c
+++ b/
drivers/memory/jz4780-nemc.c
@@
-291,6
+291,8
@@
static int jz4780_nemc_probe(struct platform_device *pdev)
nemc->dev = dev;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+ if (!res)
+ return -EINVAL;
/*
* The driver currently only uses the registers up to offset