提交 4347df6a 编写于 作者: D Dan Carpenter 提交者: Mauro Carvalho Chehab

[media] m88ds3103: a couple missing error codes

We need to set some error codes here.

Fixes: f01919e8 ('[media] m88ds3103: add I2C client binding')
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 ec8f3386
......@@ -1563,6 +1563,7 @@ static int m88ds3103_probe(struct i2c_client *client,
u8tmp = 0x10;
break;
default:
ret = -EINVAL;
goto err_kfree;
}
......@@ -1590,8 +1591,10 @@ static int m88ds3103_probe(struct i2c_client *client,
dev->i2c_adapter = i2c_add_mux_adapter(client->adapter, &client->dev,
dev, 0, 0, 0, m88ds3103_select,
m88ds3103_deselect);
if (dev->i2c_adapter == NULL)
if (dev->i2c_adapter == NULL) {
ret = -ENOMEM;
goto err_kfree;
}
/* create dvb_frontend */
memcpy(&dev->fe.ops, &m88ds3103_ops, sizeof(struct dvb_frontend_ops));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册