From 01573e231f18eb2d99162747186f59511f56b64d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 08 Dec 2023 10:40:48 +0000 Subject: [PATCH] 移去rt --- kernel/scripts/coccinelle/free/devm_free.cocci | 19 ++++++------------- 1 files changed, 6 insertions(+), 13 deletions(-) diff --git a/kernel/scripts/coccinelle/free/devm_free.cocci b/kernel/scripts/coccinelle/free/devm_free.cocci index b2a2cf8..da80050 100644 --- a/kernel/scripts/coccinelle/free/devm_free.cocci +++ b/kernel/scripts/coccinelle/free/devm_free.cocci @@ -1,8 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-only /// Find uses of standard freeing functons on values allocated using devm_ /// functions. Values allocated using the devm_functions are freed when /// the device is detached, and thus the use of the standard freeing /// function would cause a double free. -/// See Documentation/driver-model/devres.txt for more information. +/// See Documentation/driver-api/driver-model/devres.rst for more information. /// /// A difficulty of detecting this problem is that the standard freeing /// function might be called from a different function than the one @@ -14,8 +15,8 @@ /// less reliable in these cases. /// // Confidence: Moderate -// Copyright: (C) 2011 Julia Lawall, INRIA/LIP6. GPLv2. -// Copyright: (C) 2011 Gilles Muller, INRIA/LiP6. GPLv2. +// Copyright: (C) 2011 Julia Lawall, INRIA/LIP6. +// Copyright: (C) 2011 Gilles Muller, INRIA/LiP6. // URL: http://coccinelle.lip6.fr/ // Comments: // Options: --no-includes --include-headers @@ -51,8 +52,6 @@ | x = devm_ioremap(...) | - x = devm_ioremap_nocache(...) -| x = devm_ioport_map(...) ) @@ -84,17 +83,13 @@ | x = ioremap(...) | - x = ioremap_nocache(...) -| x = ioport_map(...) ) ... ( kfree@p(x) | - kzfree@p(x) -| - __krealloc@p(x, ...) + kfree_sensitive@p(x) | krealloc@p(x, ...) | @@ -117,9 +112,7 @@ ( * kfree@p(x) | -* kzfree@p(x) -| -* __krealloc@p(x, ...) +* kfree_sensitive@p(x) | * krealloc@p(x, ...) | -- Gitblit v1.6.2