summaryrefslogtreecommitdiffstats
path: root/include/ufs
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2019-12-27 10:34:32 +0100
committerWolfram Sang <wsa@kernel.org>2022-06-16 21:39:40 +0200
commite4c72c06c367758a14f227c847f9d623f1994ecf (patch)
treebea84d2a77eb97f4a861e6e9e3a31babdac91a02 /include/ufs
parenti2c: hisi: use HZ_PER_KHZ macro in units.h (diff)
downloadlinux-e4c72c06c367758a14f227c847f9d623f1994ecf.tar.xz
linux-e4c72c06c367758a14f227c847f9d623f1994ecf.zip
i2c: Fix a potential use after free
Free the adap structure only after we are done using it. This patch just moves the put_device() down a bit to avoid the use after free. Fixes: 611e12ea0f12 ("i2c: core: manage i2c bus device refcount in i2c_[get|put]_adapter") Signed-off-by: Xu Wang <vulab@iscas.ac.cn> [wsa: added comment to the code, added Fixes tag] Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'include/ufs')
0 files changed, 0 insertions, 0 deletions