summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-i801.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@kernel.org>2021-01-28 10:03:25 +0100
committerWolfram Sang <wsa@kernel.org>2021-01-28 10:03:25 +0100
commit2e7f3db5d886701c2a31219530845f642fe700d9 (patch)
treecc14a072dec431cdb69597f76282e6375420e71f /drivers/i2c/busses/i2c-i801.c
parenti2c: remove zte zx bus driver (diff)
parentLinux 5.11-rc5 (diff)
downloadlinux-2e7f3db5d886701c2a31219530845f642fe700d9.tar.xz
linux-2e7f3db5d886701c2a31219530845f642fe700d9.zip
Merge tag 'v5.11-rc5' into i2c/for-5.12
Linux 5.11-rc5
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
-rw-r--r--drivers/i2c/busses/i2c-i801.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c
index 1400a8716388..207332faefd8 100644
--- a/drivers/i2c/busses/i2c-i801.c
+++ b/drivers/i2c/busses/i2c-i801.c
@@ -1449,7 +1449,7 @@ static int i801_add_mux(struct i801_priv *priv)
/* Register GPIO descriptor lookup table */
lookup = devm_kzalloc(dev,
- struct_size(lookup, table, mux_config->n_gpios),
+ struct_size(lookup, table, mux_config->n_gpios + 1),
GFP_KERNEL);
if (!lookup)
return -ENOMEM;