Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (9175): Remove NULL pointer in stb6000 driver.

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

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Igor M. Liplianin and committed by
Mauro Carvalho Chehab
ceab2fe8 de9be0ea

+2 -1
+2 -1
drivers/media/dvb/frontends/stb6000.c
··· 201 201 struct i2c_adapter *i2c) 202 202 { 203 203 struct stb6000_priv *priv = NULL; 204 + u8 b0[] = { 0 }; 204 205 u8 b1[] = { 0, 0 }; 205 206 struct i2c_msg msg[2] = { 206 207 { 207 208 .addr = addr, 208 209 .flags = 0, 209 - .buf = NULL, 210 + .buf = b0, 210 211 .len = 0 211 212 }, { 212 213 .addr = addr,