[pvrusb2] New driver snapshot: pvrusb2-mci-20070118

Mike Isely isely at isely.net
Fri Jan 19 01:13:22 CST 2007


This snapshot fixes a kernel oops which first appeared in the previous 
(20070114) snapshot.  Cause?  A single solitary misplaced #endif 
directive.  The bad directive caused an empty element to appear in a 
static array that defines all the internal controls.  The empty element 
then resulted in all sorts of havoc manifested in any logic involving 
controls, where that effectively "poisoned" control might be touched.  
Since the pvrui.sh script touches all the controls when it starts, it 
would of course hit the poisoned control, causing a null pointer 
dereference in the driver and then the Oops error.  Oops.

This snapshot also has a bunch of code cleanups, none of which should 
have any effect on the operation of the driver.  These are things like 
replacing sizeof(x)/sizeof(x[0]) with the simpler ARRAY_SIZE() macro, 
and swapping out kmalloc()+memset() pairs with a single kzalloc() call.

The pvrusb2 driver web site can be found at:

  http://www.isely.net/pvrusb2/pvrusb2.html

  -Mike

-- 
                        |         Mike Isely          |     PGP fingerprint
     Spammers Die!!     |                             | 03 54 43 4D 75 E5 CC 92
                        |   isely @ pobox (dot) com   | 71 16 01 E2 B5 F5 C1 E8
                        |                             |


More information about the pvrusb2 mailing list