V4L/DVB (13789): [Mantis CA] Initialize the mutex
authorManu Abraham <abraham.manu@gmail.com>
Fri, 4 Dec 2009 08:34:44 +0000 (05:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:42 +0000 (11:55 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/mantis/mantis_ca.c

index 177b04813ff078edd6122099466b160f2319d703..53c01b3023ccb228997814659f61c894f3eff437 100644 (file)
@@ -156,6 +156,8 @@ int mantis_ca_init(struct mantis_pci *mantis)
        ca->en50221.poll_slot_status    = mantis_slot_status;
        ca->en50221.data                = ca;
 
+       mutex_init(&ca->ca_lock);
+
        dprintk(verbose, MANTIS_ERROR, 1, "Registering EN50221 device");
        if ((result = dvb_ca_en50221_init(dvb_adapter, &ca->en50221, ca_flags, 1)) != 0) {
                dprintk(verbose, MANTIS_ERROR, 1, "EN50221: Initialization failed");