linux-next: manual merge of the mtd tree with the origin tree
Subsystems (2)
Mark Brown
maintainerHi all,
Today's linux-next merge of the mtd tree got a conflict in:
drivers/mtd/maps/lantiq-flash.c
between commit:
4dd10fbbeb9c3 ("treewide: Convert devm_kmalloc() family to the devm_kmalloc_obj() family")
from the origin tree and commit:
fd1cc5b1dc4f2 ("mtd: maps: lantiq-flash: fix NULL pointer dereference on probe")
from the mtd tree.
I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.
drivers/mtd/maps/lantiq-flash.c +0 -0
@@@ -118,11 -118,8 +118,12 @@@ ltq_mtd_probe(struct platform_device *pplatform_set_drvdata (pdev, ltq_mtd); + ltq_mtd->map->virt =devm_platform_get_and_ioremap_resource (pdev,0 , <q_mtd->res); + if (IS_ERR(ltq_mtd->map->virt)) + return PTR_ERR(ltq_mtd->map->virt); + - ltq_mtd->map = devm_kzalloc_obj(&pdev->dev, struct map_info); + ltq_mtd->map =devm_kzalloc (&pdev->dev,sizeof (struct map_info ), +GFP_KERNEL );if (!ltq_mtd->map)return -ENOMEM ;
Miquel Raynal
maintainerQuoted 10 lines · Mark Brown
Hi all,
Today's linux-next merge of the mtd tree got a conflict in:
drivers/mtd/maps/lantiq-flash.cbetween commit:
4dd10fbbeb9c3("treewide: Convertdevm_kmalloc()family to thedevm_kmalloc_obj()family")
Quoted 7 lines
from the origin tree and commit:
fd1cc5b1dc4f2("mtd: maps: lantiq-flash: fix NULL pointer dereference on probe")from the mtd tree.
I fixed it up (see below) and can carry the fix as necessary.
Mmmh, I discover this mess only now. I rebased my branches on top of -rc2 and fixed the conflict so your fix should not longer be necessary. I hope you told Linus how painful it was for everybody to handle such late introduction :)
Thanks for the heads up,
Miquèl