[linux-dvb] [PATCH] Fixed typo in sizeof() causing NULL pointer OOPS

Oldrich Jedlicka oldium.pro at seznam.cz
Thu Nov 13 21:25:07 CET 2008


Hi,

I've found problem with memset() method in saa7134-cards.c. It causes "BUG: 
unable to handle kernel NULL pointer dereference at 00000000" during 
saa7134/xc2028 initialization.

The solution is simple: use correct sizeof() in memset().

Patch attached. I created it against 
git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6.git tree.

Regards,
Oldrich.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: saa7134-sizeof-typo.patch
Type: text/x-diff
Size: 817 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20081113/e97890e8/attachment.patch 


More information about the linux-dvb mailing list