diff options
| author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-09-29 08:33:30 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-10-28 03:01:33 -0400 |
| commit | 6d4c93affe9e3ee9c61404fc6aa7f45ba3aba40f (patch) | |
| tree | 65f464cffd08db0b463ad37eb4d87a7c936d1dfb /tools/perf/scripts/python | |
| parent | e6222f00a3aebb2d03302c09aa58b52d87d6f784 (diff) | |
blkcg: Unlock blkcg_pol_mutex only once when cpd == NULL
commit bbb427e342495df1cda10051d0566388697499c0 upstream.
Unlocking a mutex twice is wrong. Hence modify blkcg_policy_register()
such that blkcg_pol_mutex is unlocked once if cpd == NULL. This patch
avoids that smatch reports the following error:
block/blk-cgroup.c:1378: blkcg_policy_register() error: double unlock 'mutex:&blkcg_pol_mutex'
Fixes: 06b285bd1125 ("blkcg: fix blkcg_policy_data allocation bug")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
