diff options
| author | Tejun Heo <[email protected]> | 2015-08-18 14:55:07 -0700 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2015-08-18 15:49:16 -0700 |
| commit | 994b78327458ea14a1743196ee0560c73ace37f3 (patch) | |
| tree | 00b10beb44185de1f5739e7c393959ce268c3296 /scripts/stackusage | |
| parent | 401efbf835040dd2ebca54f78d58fc8e3c51f91d (diff) | |
blkcg: use blkg_free() in blkcg_init_queue() failure path
When blkcg_init_queue() fails midway after creating a new blkg, it
performs kfree() directly; however, this doesn't free the policy data
areas. Make it use blkg_free() instead. In turn, blkg_free() is
updated to handle root request_list special case.
While this fixes a possible memory leak, it's on an unlikely failure
path of an already cold path and the size leaked per occurrence is
miniscule too. I don't think it needs to be tagged for -stable.
Signed-off-by: Tejun Heo <[email protected]>
Cc: Vivek Goyal <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions