Skip to contentSkip to conversation

S2API Remove NULL pointer in stb6000 driver.

PATCH Applied Igor M. Liplianin 2 participants 2 messages Oct 5, 2008 – Oct 6, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 S2API Remove NULL pointer in stb6000 driver.

Steve,

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

Igor

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

From: Igor M. Liplianin <[email protected]>

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

linux/drivers/media/dvb/frontends/stb6000.c +2 -1
diff -r 8dc74aaea8b2 -r 4b968f970a42 linux/drivers/media/dvb/frontends/stb6000.c
@@ -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
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb