Showing error 1593

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: kernel/sched.c
Line in file: 8427
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-05-29 20:11:37 UTC


Source:

8397                if (!p->mm)
8398                        continue;
8399
8400                p->se.exec_start                = 0;
8401#ifdef CONFIG_SCHEDSTATS
8402                p->se.wait_start                = 0;
8403                p->se.sleep_start                = 0;
8404                p->se.block_start                = 0;
8405#endif
8406
8407                if (!rt_task(p)) {
8408                        /*
8409                         * Renice negative nice level userspace
8410                         * tasks back to 0:
8411                         */
8412                        if (TASK_NICE(p) < 0 && p->mm)
8413                                set_user_nice(p, 0);
8414                        continue;
8415                }
8416
8417                spin_lock(&p->pi_lock);
8418                rq = __task_rq_lock(p);
8419
8420                normalize_task(rq, p);
8421
8422                __task_rq_unlock(rq);
8423                spin_unlock(&p->pi_lock);
8424        } while_each_thread(g, p);
8425
8426        read_unlock_irqrestore(&tasklist_lock, flags);
8427}
8428
8429#endif /* CONFIG_MAGIC_SYSRQ */
8430
8431#ifdef CONFIG_IA64
8432/*
8433 * These functions are only useful for the IA64 MCA handling.
8434 *
8435 * They can only be called when the whole system has been
8436 * stopped - every CPU needs to be quiescent, and no scheduling
8437 * activity can take place. Using them for anything else would
Show full sources