Bart Van Assche
6d4c93affe
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>
2016-10-28 03:01:33 -04:00
..
2015-11-20 08:49:28 -07:00
2015-10-21 14:43:44 -06:00
2016-08-20 18:09:24 +02:00
2016-10-28 03:01:33 -04:00
2016-09-15 08:27:51 +02:00
2015-05-05 13:40:42 -06:00
2015-11-25 10:12:54 -07:00
2015-10-21 14:43:45 -06:00
2015-11-06 17:50:42 -08:00
2014-06-03 12:57:53 -07:00
2015-10-28 09:12:58 +09:00
2015-09-11 09:03:50 -06:00
2016-09-15 08:27:51 +02:00
2014-05-28 10:15:41 -06:00
2015-09-29 11:32:50 -06:00
2015-11-07 10:40:47 -07:00
2015-11-06 17:50:42 -08:00
2015-10-01 10:10:57 +02:00
2016-10-07 15:23:44 +02:00
2015-11-11 09:36:56 -07:00
2016-03-09 15:34:49 -08:00
2014-04-09 21:54:06 -06:00
2015-12-03 09:32:33 -08:00
2015-01-23 14:15:46 -07:00
2015-09-18 11:56:28 -04:00
2015-11-24 15:24:10 -07:00
2015-11-19 13:47:10 -08:00
2015-09-19 18:57:09 -07:00
2012-12-06 14:33:02 +01:00
2015-02-04 09:57:52 -07:00
2016-10-22 12:26:56 +02:00
2014-01-21 20:18:26 -08:00
2014-09-08 10:00:35 -06:00
2014-02-24 14:46:32 -08:00
2015-10-21 15:00:54 -06:00
2016-08-20 18:09:24 +02:00
2015-10-21 14:46:56 -06:00
2016-08-10 11:49:28 +02:00
2014-09-27 09:14:59 -06:00
2012-03-06 21:27:21 +01:00
2014-09-27 09:14:59 -06:00
2015-11-16 15:21:48 -07:00
2016-05-04 14:48:39 -07:00
2015-11-06 17:50:42 -08:00
2015-10-21 14:42:38 -06:00