[PATCH] saa716x: fix uninitialized splinlocks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix uninitialized spinlocks.

Signed-off-by: Luca Tettamanti <kronos.it@xxxxxxxxx>
---
 linux/drivers/media/dvb/dvb-core/dmxdev.c        |    1 +
 linux/drivers/media/dvb/saa716x/saa716x_hybrid.c |    1 +
 2 files changed, 2 insertions(+)

Index: b/linux/drivers/media/dvb/dvb-core/dmxdev.c
===================================================================
--- a/linux/drivers/media/dvb/dvb-core/dmxdev.c	2009-01-18 19:15:52.630015822 +0100
+++ b/linux/drivers/media/dvb/dvb-core/dmxdev.c	2009-01-18 19:16:17.182016807 +0100
@@ -1087,6 +1087,7 @@
 	for (i = 0; i < dmxdev->filternum; i++) {
 		dmxdev->filter[i].dev = dmxdev;
 		dmxdev->filter[i].buffer.data = NULL;
+		spin_lock_init(&dmxdev->filter[i].buffer.lock);
 		dvb_dmxdev_filter_state_set(&dmxdev->filter[i],
 					    DMXDEV_STATE_FREE);
 	}
Index: b/linux/drivers/media/dvb/saa716x/saa716x_hybrid.c
===================================================================
--- a/linux/drivers/media/dvb/saa716x/saa716x_hybrid.c	2009-01-18 19:15:52.590024681 +0100
+++ b/linux/drivers/media/dvb/saa716x/saa716x_hybrid.c	2009-01-18 19:16:17.182016807 +0100
@@ -49,6 +49,7 @@
 		goto fail0;
 	}
 
+	spin_lock_init(&saa716x->gpio_lock);
 	saa716x->verbose	= verbose;
 	saa716x->int_type	= int_type;
 	saa716x->pdev		= pdev;

Luca
-- 
Regole per la felicit�1. Sii soddisfatto di quello che hai.
2. Assicurati di avere tutto.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux