public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* DoC2k_init problem
@ 2000-05-17 17:58 Patrick Higgins
  2000-05-18  8:19 ` David Woodhouse
  0 siblings, 1 reply; 4+ messages in thread
From: Patrick Higgins @ 2000-05-17 17:58 UTC (permalink / raw)
  To: mtd


The problem seems to be that on line 392 of doc2000,

old = (struct DiskOnChip *)old->nextdoc->priv;

old->nextdoc is NULL.  What I don't seem to understand is why this old
list is being searched at all.  It should only be searched if doc2klist is
not NULL, and I see no reason why it should be non-NULL on system bootup,
unless it's static initializer isn't actually working, or a buffer is
being overrun somewhere.

Anyone know what might be going on here?

Patrick



To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DoC2k_init problem
  2000-05-17 17:58 DoC2k_init problem Patrick Higgins
@ 2000-05-18  8:19 ` David Woodhouse
  2000-05-18  8:40   ` Alessandro Rubini
  0 siblings, 1 reply; 4+ messages in thread
From: David Woodhouse @ 2000-05-18  8:19 UTC (permalink / raw)
  To: Patrick Higgins; +Cc: mtd


phiggins@transzap.com said:
>  Anyone know what might be going on here?

Pure stupidity on my part. Thanks for fixing it .

The reason we're searching through the old list is to make sure that we 
don't get invoked more than once for a DiskOnChip in any given location - 
which could happen if you have docprobe.o as a module, and load it more 
than once. 

There's no equivalent to request_region() for memory space, unfortunately.

--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DoC2k_init problem
  2000-05-18  8:19 ` David Woodhouse
@ 2000-05-18  8:40   ` Alessandro Rubini
  2000-05-18  9:13     ` David Woodhouse
  0 siblings, 1 reply; 4+ messages in thread
From: Alessandro Rubini @ 2000-05-18  8:40 UTC (permalink / raw)
  To: David Woodhouse; +Cc: phiggins, mtd

> There's no equivalent to request_region() for memory space, unfortunately.

Hmm.. what about request_mem_region()?

/alessandro


To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: DoC2k_init problem
  2000-05-18  8:40   ` Alessandro Rubini
@ 2000-05-18  9:13     ` David Woodhouse
  0 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2000-05-18  9:13 UTC (permalink / raw)
  To: Alessandro Rubini; +Cc: phiggins, mtd


rubini@pop.systemy.it said:
>  Hmm.. what about request_mem_region()?

That's only in 2.3, though, isn't it? I'm trying to avoid adding too much
2.3-specific code at this stage.

Besides which, we've just realised (and I'm writing that response now) that 
we have to eliminate duplicates more strictly than that - if you don't 
decode all the address lines, the same DiskOnChip can turn up at different 
locations too.

--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-05-18  9:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-17 17:58 DoC2k_init problem Patrick Higgins
2000-05-18  8:19 ` David Woodhouse
2000-05-18  8:40   ` Alessandro Rubini
2000-05-18  9:13     ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox