Showing error 1340

User: Jiri Slaby
Error type: Leaving function in locked state
Error type description: Some lock is not unlocked on all paths of a function, so it is leaked
File location: fs/dlm/ast.c
Line in file: 167
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-05-21 20:30:05 UTC


Source:

137                set_bit(WAKE_ASTS, &astd_wakeflags);
138                wake_up_process(astd_task);
139        }
140}
141
142int dlm_astd_start(void)
143{
144        struct task_struct *p;
145        int error = 0;
146
147        INIT_LIST_HEAD(&ast_queue);
148        spin_lock_init(&ast_queue_lock);
149        mutex_init(&astd_running);
150
151        p = kthread_run(dlm_astd, NULL, "dlm_astd");
152        if (IS_ERR(p))
153                error = PTR_ERR(p);
154        else
155                astd_task = p;
156        return error;
157}
158
159void dlm_astd_stop(void)
160{
161        kthread_stop(astd_task);
162}
163
164void dlm_astd_suspend(void)
165{
166        mutex_lock(&astd_running);
167}
168
169void dlm_astd_resume(void)
170{
171        mutex_unlock(&astd_running);
172}
173
Show full sources