summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-09-12 21:20:43 +0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-09-12 21:20:43 +0200
commit96308f3d1acc7260678985b9009e94ba0305ebc2 (patch)
treec50a4f4c6dda7708e19061faaf2f8167f10f596f /linux/drivers
parenta7e9aa7355769ffc29c04c00644a7a8462ff9fa5 (diff)
downloadmediapointer-dvb-s2-96308f3d1acc7260678985b9009e94ba0305ebc2.tar.gz
mediapointer-dvb-s2-96308f3d1acc7260678985b9009e94ba0305ebc2.tar.bz2
Bugfix for saa6588.c, add forgotten spin_lock_init()
From: Hans-Jürgen Koch <hjk@linutronix.de> There's a serious bug in saa6588.c, it uses a non-initialized spin_lock. Funny thing is that it works fine with bttv, but completly freezes the machine if e.g. saa7134 is loaded. Thanks to Derek Philip for reporting this bug on the rdsd-devel list. This patch adds the missing spin_lock_init(). Signed-off-by: Hans J. Koch <hjk@linutronix.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/saa6588.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa6588.c b/linux/drivers/media/video/saa6588.c
index f6840efa9..a6a7fa242 100644
--- a/linux/drivers/media/video/saa6588.c
+++ b/linux/drivers/media/video/saa6588.c
@@ -425,6 +425,7 @@ static int saa6588_attach(struct i2c_adapter *adap, int addr, unsigned short fla
kfree(s);
return -ENOMEM;
}
+ spin_lock_init(&s->lock);
s->client = client_template;
s->block_count = 0;
s->wr_index = 0;