diff options
author | Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> | 2022-02-03 18:47:03 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2022-02-11 18:43:08 +0100 |
commit | 02a4a69667a2ad32f3b52ca906f19628fbdd8a01 (patch) | |
tree | 459079398d2e68c55460e92722ac47fe948fdd8d /drivers/ata | |
parent | a0d48505a1d68e27220369e2dd1e3573a2f362d2 (diff) | |
download | linux-02a4a69667a2ad32f3b52ca906f19628fbdd8a01.tar.bz2 |
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 'drivers/ata')
0 files changed, 0 insertions, 0 deletions