diff options
| author | 2019-11-24 22:58:35 +0800 | |
|---|---|---|
| committer | 2019-11-27 12:53:48 +0000 | |
| commit | 4affd79a125ac91e6a53be843ea3960a8fc00cbb (patch) | |
| tree | bb42d14a7ee8ee531d8332ad4280b1747aeaf371 /scripts/gdb/linux/tasks.py | |
| parent | regulator: da9062: Return REGULATOR_MODE_INVALID for invalid mode (diff) | |
| download | wireguard-linux-4affd79a125ac91e6a53be843ea3960a8fc00cbb.tar.xz wireguard-linux-4affd79a125ac91e6a53be843ea3960a8fc00cbb.zip | |
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 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions
