[PATCH] mtd: Fix kernel NULL pointer dereference in physmap.c

Atsushi Nemoto anemo at mba.ocn.ne.jp
Tue Oct 20 12:17:50 EDT 2009


On Tue, 20 Oct 2009 12:08:00 -0400, "H Hartley Sweeten" <hartleys at visionengravers.com> wrote:
> >> Also, cleanup the #ifdef CONFIG_MTD_PARTITIONS stuff by using
> >> mtd_has_partitions().
> >
> > And this cleanup cause build errors when CONFIG_MTD_PARTITIONS was not
> > set.  A separate patch might be better for such cleanup.
> 
> Hmm..  Not sure why that would cause a build error.  Regardless, I will
> remove that change from this patch.

Thank you.  The build errors are something like:

physmap.c:53: error: 'struct physmap_flash_info' has no member named 'nr_parts'
physmap.c:174: error: 'part_probe_types' undeclared (first use in this function)

---
Atsushi Nemoto



More information about the linux-mtd mailing list