Oops with mtd_dataflash driver in 3.3

Artem Bityutskiy artem.bityutskiy at linux.intel.com
Fri Apr 13 11:58:44 EDT 2012


On Fri, 2012-03-30 at 11:51 +0100, Will Newton wrote:
> Hi all,
> 
> I'm seeing an oops in mtd_dataflash.c with Linux 3.3. What appears to
> be happening is that otp_select_filemode calls mtd_read_fact_prot_reg
> with -1 for offset and length and a NULL buffer to test if OTP
> operations are supported. This finds its way down to otp_read in
> mtd_dataflash.c and causes an oops when memcpying the returned data
> into the NULL buf.

Hi, good catch, thanks!

I've added "Cc: stable at krnel.org [3.3+]" and pushed to l2-mtd.git,
thanks you.

But note, you should add your Signed-off-by when sending patches.
Also this patch is line-wrapped so I had to do a small surgery to apply
it. Try to save it from your mailbox and apply with 'git am'.

Anyway, thanks for the catch.

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20120413/5e283d63/attachment.sig>


More information about the linux-mtd mailing list