Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110512
b: refs/heads/master
c: 2bbedcb
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Oct 9, 2008
1 parent da5a10c commit c05b926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 759f8ca3048f7438aa3129268d7252552505d662
refs/heads/master: 2bbedcb4c1abac498f18e5770d62ae66ff235ada
4 changes: 2 additions & 2 deletions trunk/block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ struct block_device *bdget_disk(struct gendisk *disk, int partno)
struct block_device *bdev = NULL;

part = disk_get_part(disk, partno);
if (part && (part->nr_sects || partno == 0))
if (part)
bdev = bdget(part_devt(part));
disk_put_part(part);

Expand Down Expand Up @@ -1031,7 +1031,7 @@ dev_t blk_lookup_devt(const char *name, int partno)
continue;

part = disk_get_part(disk, partno);
if (part && (part->nr_sects || partno == 0)) {
if (part) {
devt = part_devt(part);
disk_put_part(part);
break;
Expand Down

0 comments on commit c05b926

Please sign in to comment.