mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Merge "ASoC: wcd: Add check to stop invalid memory access"
This commit is contained in:
commit
d48f0b5e1e
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2011-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
|
|
@ -1200,9 +1200,12 @@ static int wcd9xxx_i2c_probe(struct i2c_client *client,
|
|||
wcd9xxx_set_intf_type(WCD9XXX_INTERFACE_TYPE_I2C);
|
||||
|
||||
return ret;
|
||||
} else {
|
||||
ret = -EINVAL;
|
||||
pr_err("%s: I2C probe in wrong state, ret %d\n", __func__, ret);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
pr_err("%s: I2C probe in wrong state\n", __func__);
|
||||
|
||||
|
||||
err_device_init:
|
||||
|
|
|
|||
Loading…
Reference in a new issue