Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219181
b: refs/heads/master
c: 104a698
h: refs/heads/master
i:
  219179: 7d682a1
v: v3
  • Loading branch information
Arnd Bergmann authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent a9d5073 commit 1c0e49c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e4e62b35b8cf008f47ffd240d04bde654d289a46
refs/heads/master: 104a698657148e130ad22c8fc245e9bac317c7c5
7 changes: 4 additions & 3 deletions trunk/drivers/media/dvb/bt8xx/dst_ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/smp_lock.h>
#include <linux/mutex.h>
#include <linux/string.h>
#include <linux/dvb/ca.h>
#include "dvbdev.h"
Expand Down Expand Up @@ -52,6 +52,7 @@
} while(0)


static DEFINE_MUTEX(dst_ca_mutex);
static unsigned int verbose = 5;
module_param(verbose, int, 0644);
MODULE_PARM_DESC(verbose, "verbose startup messages, default is 1 (yes)");
Expand Down Expand Up @@ -564,7 +565,7 @@ static long dst_ca_ioctl(struct file *file, unsigned int cmd, unsigned long ioct
void __user *arg = (void __user *)ioctl_arg;
int result = 0;

lock_kernel();
mutex_lock(&dst_ca_mutex);
dvbdev = file->private_data;
state = (struct dst_state *)dvbdev->priv;
p_ca_message = kmalloc(sizeof (struct ca_msg), GFP_KERNEL);
Expand Down Expand Up @@ -652,7 +653,7 @@ static long dst_ca_ioctl(struct file *file, unsigned int cmd, unsigned long ioct
kfree (p_ca_slot_info);
kfree (p_ca_caps);

unlock_kernel();
mutex_unlock(&dst_ca_mutex);
return result;
}

Expand Down

0 comments on commit 1c0e49c

Please sign in to comment.