BUG at dcache.h:276! Causing oops when I rmmod a nand module having mulitple partitions

Brad Beveridge
2004-11-22T01:50:10Z

Hi all. Here is the basic problem, I have a nand module that I want to
insmod & rmmod. It has multiple partitions that look like
static struct mtd_partition partition_info1[] = {
{ name: "part1",
offset: 0,
size: 4 * 1024 * 1024 },
{ name: "part2",
offset: 4 * 1024 *
1024,
size: 4 * 1024 * 1024
},
{ name: "part3",
offset: 8 * 1024 *
1024,
size: MTDPART_SIZ_FULL }
};

I call nand_scan on my device, and then add_mtd_partitions.
When I rmmod the module I simply call nand_release, because it
automatically calls del_mtd_partitions.

However, this causes a BUG in dcache.h:276.
There is no oops if I only use a single partition.

Any thoughts on what might be going on?

Cheers
Brad