summaryrefslogtreecommitdiff
path: root/drivers/cdx
diff options
context:
space:
mode:
authorYaxiong Tian <tianyaxiong@kylinos.cn>2023-11-24 04:49:13 +0300
committerChanwoo Choi <cw00.choi@samsung.com>2023-12-04 15:47:19 +0300
commite66523c72c9aae0ff0dae6859eb77b04de1e8e5f (patch)
treed8cf42b3481a454b7daaa9f8c409e6a766b154e6 /drivers/cdx
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
downloadlinux-e66523c72c9aae0ff0dae6859eb77b04de1e8e5f.tar.xz
extcon: fix possible name leak in extcon_dev_register()
In the error path after calling dev_set_name(), the device name is leaked. To fix this, moving dev_set_name() after the error path and before device_register. Link: https://lore.kernel.org/lkml/TYZPR01MB4784ADCD3E951E0863F3DB72D5B8A@TYZPR01MB4784.apcprd01.prod.exchangelabs.com/ Signed-off-by: Yaxiong Tian <tianyaxiong@kylinos.cn> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/cdx')
0 files changed, 0 insertions, 0 deletions