[PATCH] S2API Remove NULL pointer in stb6000 driver.

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

 



Steve,

Remove NULL pointer in stb6000 driver,
as it raises error for DvbWorld USB card.

Igor
# HG changeset patch
# User Igor M. Liplianin <liplianin@xxxxx>
# Date 1223207831 -10800
# Node ID 4b968f970a42a266179113bb3280250e42ccd2f3
# Parent  8dc74aaea8b20dea5b42c32873984c2c28a8ab6e
Remove NULL pointer in stb6000 driver.

From: Igor M. Liplianin <liplianin@xxxxx>

Remove NULL pointer in stb6000 driver,
as it raises error for DvbWorld USB card.

Signed-off-by: Igor M. Liplianin <liplianin@xxxxx>

diff -r 8dc74aaea8b2 -r 4b968f970a42 linux/drivers/media/dvb/frontends/stb6000.c
--- a/linux/drivers/media/dvb/frontends/stb6000.c	Sun Oct 05 14:52:18 2008 +0300
+++ b/linux/drivers/media/dvb/frontends/stb6000.c	Sun Oct 05 14:57:11 2008 +0300
@@ -202,12 +202,13 @@
 						struct i2c_adapter *i2c)
 {
 	struct stb6000_priv *priv = NULL;
+	u8 b0[] = { 0 };
 	u8 b1[] = { 0, 0 };
 	struct i2c_msg msg[2] = {
 		{
 			.addr = addr,
 			.flags = 0,
-			.buf = NULL,
+			.buf = b0,
 			.len = 0
 		}, {
 			.addr = addr,
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux