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
mtd: maps: sa1100-flash: potential NULL dereference
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
maps
/
sa1100-flash.c
diff --git
a/drivers/mtd/maps/sa1100-flash.c
b/drivers/mtd/maps/sa1100-flash.c
index 142fc3d794637366cc4a4996b5e07f882d14b7a2..784c6e1a0391e92c90723e698d8bc148fe3e4916 100644
(file)
--- a/
drivers/mtd/maps/sa1100-flash.c
+++ b/
drivers/mtd/maps/sa1100-flash.c
@@
-230,8
+230,10
@@
static struct sa_info *sa1100_setup_mtd(struct platform_device *pdev,
info->mtd = mtd_concat_create(cdev, info->num_subdev,
plat->name);
- if (info->mtd == NULL)
+ if (info->mtd == NULL)
{
ret = -ENXIO;
+ goto err;
+ }
}
info->mtd->dev.parent = &pdev->dev;