diff options
author | Bart Van Assche <[email protected]> | 2016-09-29 08:33:30 -0700 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2016-09-30 10:31:20 +0200 |
commit | bbb427e342495df1cda10051d0566388697499c0 (patch) | |
tree | f52002457cef52dd9e3cdcb490b6342a81767d9f /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | e0223003e6e141533446d01a92784592a97a8552 (diff) |
blkcg: Unlock blkcg_pol_mutex only once when cpd == NULL
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 <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: <[email protected]> # v4.2+
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions