Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ceab2fe8 authored by Igor M. Liplianin's avatar Igor M. Liplianin Committed by Mauro Carvalho Chehab
Browse files

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: default avatarIgor M. Liplianin <liplianin@me.by>
Signed-off-by: default avatarSteven Toth <stoth@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent de9be0ea
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -201,12 +201,13 @@ struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr,
						struct i2c_adapter *i2c)
						struct i2c_adapter *i2c)
{
{
	struct stb6000_priv *priv = NULL;
	struct stb6000_priv *priv = NULL;
	u8 b0[] = { 0 };
	u8 b1[] = { 0, 0 };
	u8 b1[] = { 0, 0 };
	struct i2c_msg msg[2] = {
	struct i2c_msg msg[2] = {
		{
		{
			.addr = addr,
			.addr = addr,
			.flags = 0,
			.flags = 0,
			.buf = NULL,
			.buf = b0,
			.len = 0
			.len = 0
		}, {
		}, {
			.addr = addr,
			.addr = addr,