提交 a8643430 编写于 作者: I Ilkka Koskinen 提交者: Samuel Ortiz

mfd: Do not dereference null pointer in twl4030 error path

We are mistakenly dereferencing twl->client in the twl->client null checking
path.
Signed-off-by: NIlkka Koskinen <ilkka.koskinen@nokia.com>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 14f572fa
......@@ -795,7 +795,7 @@ twl4030_probe(struct i2c_client *client, const struct i2c_device_id *id)
twl->client = i2c_new_dummy(client->adapter,
twl->address);
if (!twl->client) {
dev_err(&twl->client->dev,
dev_err(&client->dev,
"can't attach client %d\n", i);
status = -ENOMEM;
goto fail;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册