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

Commit a8643430 authored by Ilkka Koskinen's avatar Ilkka Koskinen Committed by Samuel Ortiz
Browse files

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: default avatarIlkka Koskinen <ilkka.koskinen@nokia.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 14f572fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;