diff options
author | Wang Guoli <[email protected]> | 2014-02-12 12:44:54 -0800 |
---|---|---|
committer | Brian Norris <[email protected]> | 2014-03-10 22:42:28 -0700 |
commit | 01887a3a2353f1c2fc7488b871d6df8055acb109 (patch) | |
tree | 77e1565fb98aac1f717cc2ef86638d340a0ea382 /tools/perf/scripts/python/sched-migration.py | |
parent | 13b546d96207c131eeae15dc7b26c6e7d0f1cad7 (diff) |
jffs2: unlock f->sem on error in jffs2_new_inode()
If jffs2_new_inode() succeeds, it returns with f->sem held, and the caller
is responsible for releasing the lock. If it fails, it still returns with
the lock held, but the caller won't release the lock, which will lead to
deadlock.
Fix it by releasing the lock in jffs2_new_inode() on error.
Signed-off-by: Wang Guoli <[email protected]>
Signed-off-by: Wang Nan <[email protected]>
Cc: Artem Bityutskiy <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Wang Guoli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
[Brian: not marked for stable; no one observed deadlock, and I don't
think it can happen here]
Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions