diff options
author | 2022-02-03 18:47:03 +0200 | |
---|---|---|
committer | 2022-02-11 18:43:08 +0100 | |
commit | 02a4a69667a2ad32f3b52ca906f19628fbdd8a01 (patch) | |
tree | 459079398d2e68c55460e92722ac47fe948fdd8d /lib/mpi/mpiutil.c | |
parent | i2c: qcom-cci: don't delete an unregistered adapter (diff) | |
download | wireguard-linux-02a4a69667a2ad32f3b52ca906f19628fbdd8a01.tar.xz wireguard-linux-02a4a69667a2ad32f3b52ca906f19628fbdd8a01.zip |
i2c: qcom-cci: don't put a device tree node before i2c_add_adapter()
There is a minor chance for a race, if a pointer to an i2c-bus subnode
is stored and then reused after releasing its reference, and it would
be sufficient to get one more reference under a loop over children
subnodes.
Fixes: e517526195de ("i2c: Add Qualcomm CCI I2C driver")
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions