From: Stefan Thomasson <stefan.thomasson@possio.com>
To: linux-mtd@lists.infradead.org
Subject: How to access cfi_intelext_read_fact_prot_reg
Date: Mon, 02 Dec 2002 19:06:24 +0100 [thread overview]
Message-ID: <3DEBA120.5A06F15@possio.com> (raw)
Hi,
I am having trouble using cfi_intelext_read_fact_prot_reg
So far the only thing I have succeeded to do is getting a
Unable to handle kernel NULL pointer dereference at virtual address
00000040.
This occurs as far as I can tell when the function
tries to setup map, cfi or cfi_pri_intelext.
mtd->priv seem to be uninitialized and this will result in the NULL ptr.
So, the question is where is mtd->priv setup?
I have tried to follow how its done when erasing a block in mtdchar
ioctl without success.
In mtd_ioctl
printk(KERN_NOTICE "mtd = %p .\n",mtd );
printk(KERN_NOTICE "priv = %p .\n",mtd->priv );
Results in
mtd = c0467260 .
priv = 00000000 .
and later on in cfi_intelext_erase_varsize
printk(KERN_NOTICE "MMmtd = %x .\n",mtd );
printk(KERN_NOTICE "MMpriv = %x .\n",mtd->priv );
MMmtd = c0467060 .
MMpriv = c036b738 .
Running 2.4.18-rmk5-pxa1.
Regards
Stefan
reply other threads:[~2002-12-02 17:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DEBA120.5A06F15@possio.com \
--to=stefan.thomasson@possio.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.