Re: pxa_camera: Oops in pxa_camera_probe.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 3 Jul 2009 22:03:27 +0200 (CEST)
Guennadi Liakhovetski <g.liakhovetski@xxxxxx> wrote:

> On Fri, 3 Jul 2009, Antonio Ospite wrote:
> 
> > > Linux video capture interface: v2.00
> > > Unable to handle kernel NULL pointer dereference at virtual address 00000060
> > > pgd = c0004000
> > > [00000060] *pgd=00000000
> > > Internal error: Oops: f5 [#1] PREEMPT
> > > Modules linked in:
> > > CPU: 0    Tainted: G        W   (2.6.31-rc1-ezxdev #1)
> > > PC is at dev_driver_string+0x0/0x38
> > > LR is at pxa_camera_probe+0x144/0x428
> > 
> > The offending dev_driver_str() here is the one in the dev_warn() call in
> > mclk_get_divisor().
> > 
> > This is what is happening: in struct pxacamera_platform_data I have:
> > 	.mclk_10khz = 5000,
> > 
> > which makes the > test in mclk_get_divisor() succeed calling dev_warn
> > to report that the clock has been limited, but pcdev->soc_host.dev is
> > still uninitialized at this time.
> > 
> > I could lower the value in my platform data and avoid the bug, but it
> > would be good to have this fixed ASAP anyway.
> > 
> > The attached rough patch fixes the problem, but you will surely come
> > out with a better one :)
> 
> Why should I? Your patch seems correct to me so far, thanks. I'll push it 
> for 2.6.31. Please, next time inline your patch as described in 
> Documentation/SubmittingPatches.
>

Well, it should be correct, I just thought it could be considered
unpretty with the pcdev->soc_host initializations scattered here and
there, that's what I was referring to.
But, if this is ok to you, it's ok to me too :)

Ciao,
   Antonio

-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Attachment: pgpiAfhE3tT7p.pgp
Description: PGP signature


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux