summaryrefslogtreecommitdiffstats
path: root/tools/firewire
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-10-19 14:31:15 +0200
committerJens Axboe <axboe@kernel.dk>2011-10-19 14:31:15 +0200
commitece84241b93c4693bfe0a8ec9a043a16d216d0cd (patch)
tree4bddd724aaecaf391488d3194d59cef80ef0c9eb /tools/firewire
parent523e1d399ce0e23bec562abe2b2f8d297af81161 (diff)
downloadlinux-ece84241b93c4693bfe0a8ec9a043a16d216d0cd.tar.gz
linux-ece84241b93c4693bfe0a8ec9a043a16d216d0cd.tar.bz2
linux-ece84241b93c4693bfe0a8ec9a043a16d216d0cd.zip
block: fix genhd refcounting in blkio_policy_parse_and_set()
blkio_policy_parse_and_set() calls blkio_check_dev_num() to check whether the given dev_t is valid. blkio_check_dev_num() uses get_gendisk() for verification but never puts the returned genhd leaking the reference. This patch collapses blkio_check_dev_num() into its caller and updates it such that the genhd is put before returning. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/firewire')
0 files changed, 0 insertions, 0 deletions