summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/bt8xx/dst_common.h
diff options
context:
space:
mode:
authorManu Abraham <manu@linuxtv.org>2005-11-08 21:35:36 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 07:56:03 -0800
commitd28d57629ffcd30e11a6085e15ee1327fea60b60 (patch)
treec3286f3f4a2eeec76cff805b5d06a455bab9e8eb /drivers/media/dvb/bt8xx/dst_common.h
parent2cbeddc976645262dbe036d6ec0825f96af70da3 (diff)
[PATCH] dvb: dst: protect the read/write commands with a mutex
We need to protect the read/write commands with a mutex. Bug reported by Henrik Sjoberg <henke@epact.se> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Cc: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/bt8xx/dst_common.h')
-rw-r--r--drivers/media/dvb/bt8xx/dst_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb/bt8xx/dst_common.h b/drivers/media/dvb/bt8xx/dst_common.h
index 29b5430dbe4f..81557f38fe38 100644
--- a/drivers/media/dvb/bt8xx/dst_common.h
+++ b/drivers/media/dvb/bt8xx/dst_common.h
@@ -22,6 +22,7 @@
#ifndef DST_COMMON_H
#define DST_COMMON_H
+#include <linux/smp_lock.h>
#include <linux/dvb/frontend.h>
#include <linux/device.h>
#include "bt878.h"
@@ -119,6 +120,8 @@ struct dst_state {
u8 card_info[8];
u8 vendor[8];
u8 board_info[8];
+
+ struct semaphore dst_mutex;
};
struct dst_types {