diff options
author | Wen Yang <wenyang@linux.alibaba.com> | 2019-11-24 22:58:35 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-11-27 12:53:48 +0000 |
commit | 4affd79a125ac91e6a53be843ea3960a8fc00cbb (patch) | |
tree | bb42d14a7ee8ee531d8332ad4280b1747aeaf371 /fs/dlm/config.h | |
parent | c15d5a645875bc9b89f68f5d3fb608f691ac78d7 (diff) | |
download | linux-4affd79a125ac91e6a53be843ea3960a8fc00cbb.tar.bz2 |
regulator: fix use after free issue
This is caused by dereferencing 'rdev' after put_device() in
the _regulator_get()/_regulator_put() functions.
This patch just moves the put_device() down a bit to avoid the
issue.
Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: linux-kernel@vger.kernel.org
Link: https://lore.kernel.org/r/20191124145835.25999-1-wenyang@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'fs/dlm/config.h')
0 files changed, 0 insertions, 0 deletions