patch-2.4.0-test4 linux/drivers/char/msp3400.c

Next file: linux/drivers/char/nvram.c
Previous file: linux/drivers/char/mixcomwd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/drivers/char/msp3400.c linux/drivers/char/msp3400.c
@@ -1265,8 +1265,10 @@
 {
 	struct i2c_client *client = file->private_data;
 
+	lock_kernel();
 	if (client->adapter->dec_use) 
 		client->adapter->dec_use(client->adapter);
+	unlock_kernel();
         return 0;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)