aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorVadim Pasternak <[email protected]>2019-05-16 17:15:41 +0000
committerWolfram Sang <[email protected]>2019-05-27 19:24:58 +0000
commit13067ef73f337336e3149f5bb9f3fd05fe7f87a0 (patch)
treede1cba3da186121bccf50b402c3840e784a50dbd /fs/proc/array.c
parenti2c: dev: fix potential memory leak in i2cdev_ioctl_rdwr (diff)
downloadkernel-13067ef73f337336e3149f5bb9f3fd05fe7f87a0.tar.gz
kernel-13067ef73f337336e3149f5bb9f3fd05fe7f87a0.zip
i2c: mlxcpld: Fix wrong initialization order in probe
Fix wrong order in probing routine initialization - field `base_addr' is used before it's initialized. Move assignment of 'priv->base_addr` to the beginning, prior the call to mlxcpld_i2c_read_comm(). Wrong order caused the first read of capability register to be executed at wrong offset 0x0 instead of 0x2000. By chance it was a "good garbage" at 0x0 offset. Fixes: 313ce648b5a4 ("i2c: mlxcpld: Add support for extended transaction length for i2c-mlxcpld") Signed-off-by: Vadim Pasternak <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Cc: [email protected]
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions