Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 194c56a9 authored by Raviteja Laggyshetty's avatar Raviteja Laggyshetty Committed by Gerrit - the friendly Code Review server
Browse files

interconnect: qcom: sm6150: fix UAF under remove function



UAF is observed while unloading the interconnect driver.
Interconnect is core to the system and should not
be unloaded once it is probed. Marking the driver as
permanent by removing the module_exit function.

Change-Id: Ib1335860da25147ca87715a1935d2e8feee3fde4
Signed-off-by: default avatarRaviteja Laggyshetty <quic_rlaggysh@quicinc.com>
parent 0c085f1a
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
 *
 */

@@ -2457,11 +2458,5 @@ static int __init qnoc_driver_init(void)
}
core_initcall(qnoc_driver_init);

static void __exit qnoc_driver_exit(void)
{
	platform_driver_unregister(&qnoc_driver);
}
module_exit(qnoc_driver_exit);

MODULE_DESCRIPTION("SM6150 NoC driver");
MODULE_LICENSE("GPL v2");