usb摄像头驱动奇怪现象
我加载了2.6.24的pwc驱动后,显示正常.但一插入摄像头就出错:
Unable to handle kernel NULL pointer dereference at virtual address 00000118
pgd = c0004000
[00000118] *pgd=00000000
Internal error: Oops: 17 [#1]
Modules linked in: pwc videodev compat_ioctl32 v4l2_common v4l1_compat rfcomm l2cap bluetooth pcmcia pxa2xx_cs pxa2xx_core pcmcia_core 8139too
CPU: 0
Not tainted (2.6.24-cm-x270 #2)
pc : [<bf050748>]
lr : [<c01bdf84>]
psr: a0000013
sp : c7cd1c90 ip : c7cd1ce0 fp : c7cd1cdc
r10: c031c65c r9 : ffffffa4 r8 : 00000000
r7 : bf062bf0 r6 : bf062c20 r5 : c7485a00 r4 : c7485a20
r3 : 00000174 r2 : 00000000 r1 : 00000000 r0 : c7485a00
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0000397f Table: a7e10000 DAC: 00000017
Process khubd (pid: 75, stack limit = 0xc7cd0270)
...
PC is at kref_get+0x10/0x64
LR is at kobject_get+0x20/0x28
这应该是空指针问题.
问题在kref_get这里,但摄像头源码没有这段,这段是usb-skeleton.c的.那应该到那里查呢?