From 2d1af6396199ab378ec6959300d0ee8a4ba557b9 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 3 Mar 2009 17:29:59 +0300 Subject: [PATCH] Fix NULL deref. Signed-off-by: Dan Carpenter --- check_locking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_locking.c b/check_locking.c index f6abef58..7f3e86e6 100644 --- a/check_locking.c +++ b/check_locking.c @@ -249,7 +249,7 @@ static void check_possible(struct sm_state *sm) undef = 1; } END_FOR_EACH_PTR(tmp); if (islocked && (isunlocked || undef)) - smatch_msg("Unclear if '%s' is locked or unlocked.", tmp->name); + smatch_msg("Unclear if '%s' is locked or unlocked.", sm->name); } static void match_return(struct statement *stmt) -- 2.11.4.GIT