* [linux-dvb] [PATCH] S2API Remove NULL pointer in stb6000 driver.
@ 2008-10-05 12:28 Igor M. Liplianin
2008-10-06 23:50 ` Steven Toth
0 siblings, 1 reply; 2+ messages in thread
From: Igor M. Liplianin @ 2008-10-05 12:28 UTC (permalink / raw)
To: linux-dvb, Steven Toth, Steven Toth
[-- Attachment #1: Type: text/plain, Size: 95 bytes --]
Steve,
Remove NULL pointer in stb6000 driver,
as it raises error for DvbWorld USB card.
Igor
[-- Attachment #2: 9076.patch --]
[-- Type: text/x-diff, Size: 923 bytes --]
# HG changeset patch
# User Igor M. Liplianin <liplianin@me.by>
# Date 1223207831 -10800
# Node ID 4b968f970a42a266179113bb3280250e42ccd2f3
# Parent 8dc74aaea8b20dea5b42c32873984c2c28a8ab6e
Remove NULL pointer in stb6000 driver.
From: Igor M. Liplianin <liplianin@me.by>
Remove NULL pointer in stb6000 driver,
as it raises error for DvbWorld USB card.
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
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,
[-- Attachment #3: Type: text/plain, Size: 150 bytes --]
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-06 23:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-05 12:28 [linux-dvb] [PATCH] S2API Remove NULL pointer in stb6000 driver Igor M. Liplianin
2008-10-06 23:50 ` Steven Toth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox