android_kernel_xiaomi_sm7250/drivers/isdn/mISDN
Yang Yingliang a636fc5a7c mISDN: fix possible memory leak in mISDN_register_device()
[ Upstream commit e7d1d4d9ac0dfa40be4c2c8abd0731659869b297 ]

Afer commit 1fa5ae857b ("driver core: get rid of struct device's
bus_id string array"), the name of device is allocated dynamically,
add put_device() to give up the reference, so that the name can be
freed in kobject_cleanup() when the refcount is 0.

Set device class before put_device() to avoid null release() function
WARN message in device_release().

Fixes: 1fa5ae857b ("driver core: get rid of struct device's bus_id string array")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-10 17:46:52 +01:00
..
clock.c
core.c mISDN: fix possible memory leak in mISDN_register_device() 2022-11-10 17:46:52 +01:00
core.h mISDN: change function names to avoid conflicts 2022-01-11 13:58:50 +01:00
dsp_audio.c
dsp_biquad.h
dsp_blowfish.c
dsp_cmx.c
dsp_core.c
dsp_dtmf.c
dsp_ecdis.h
dsp_hwec.c
dsp_hwec.h
dsp_pipeline.c
dsp_tones.c
dsp.h
fsm.c
fsm.h
hwchannel.c
Kconfig misdn: dsp: select CONFIG_BITREVERSE 2021-01-19 18:22:36 +01:00
l1oip_codec.c
l1oip_core.c mISDN: fix use-after-free bugs in l1oip timer handlers 2022-10-26 13:19:26 +02:00
l1oip.h mISDN: fix use-after-free bugs in l1oip timer handlers 2022-10-26 13:19:26 +02:00
layer1.c mISDN: change function names to avoid conflicts 2022-01-11 13:58:50 +01:00
layer1.h
layer2.c
layer2.h
Makefile
socket.c
stack.c
tei.c
timerdev.c