[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <38efa7c3a66dd686be64d149e198f2fddc3e7383.1581282103.git.jbi.octave@gmail.com>
Date: Sun, 9 Feb 2020 22:49:04 +0000
From: Jules Irenge <jbi.octave@...il.com>
To: boqun.feng@...il.com
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
kasan-dev@...glegroups.com, akpm@...ux-foundation.org,
dvyukov@...gle.com, glider@...gle.com, aryabinin@...tuozzo.com,
Jules Irenge <jbi.octave@...il.com>
Subject: [PATCH 10/11] kasan: add missing annotation for end_report()
Sparse reports a warning at end_report()
warning: context imbalance in end_report() - unexpected lock
The root cause is a missing annotation at end_report()
Add the missing annotation __releases(&report_lock)
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
mm/kasan/report.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/kasan/report.c b/mm/kasan/report.c
index 5451624c4e09..8adaa4eaee31 100644
--- a/mm/kasan/report.c
+++ b/mm/kasan/report.c
@@ -87,7 +87,7 @@ static void start_report(unsigned long *flags) __acquires(&report_lock)
pr_err("==================================================================\n");
}
-static void end_report(unsigned long *flags)
+static void end_report(unsigned long *flags) __releases(&report_lock)
{
pr_err("==================================================================\n");
add_taint(TAINT_BAD_PAGE, LOCKDEP_NOW_UNRELIABLE);
--
2.24.1
Powered by blists - more mailing lists