Skip to content

Commit 208cd44

Browse files
committed
Merge branch 'for-7.1/block' into for-next
* for-7.1/block: blk-cgroup: fix disk reference leak in blkcg_maybe_throttle_current()
2 parents a8eb8a0 + 23308af commit 208cd44

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

block/blk-cgroup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,7 @@ void blkcg_maybe_throttle_current(void)
20372037
return;
20382038
out:
20392039
rcu_read_unlock();
2040+
put_disk(disk);
20402041
}
20412042

20422043
/**

0 commit comments

Comments
 (0)