Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42753
b: refs/heads/master
c: 5127d00
h: refs/heads/master
i:
  42751: a78ab00
v: v3
  • Loading branch information
Suzuki Kp authored and Linus Torvalds committed Dec 7, 2006
1 parent 3905d64 commit 01fc35e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 1ecb9c0f3c9ef6af77c39a9f584940691847ccf4
refs/heads/master: 5127d002f9769ba6b1691de78dd3a5c14635e183
4 changes: 3 additions & 1 deletion trunk/fs/partitions/check.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ check_partition(struct gendisk *hd, struct block_device *bdev)
else if (warn_no_part)
printk(" unable to read partition table\n");
kfree(state);
return NULL;
return ERR_PTR(res);
}

/*
Expand Down Expand Up @@ -494,6 +494,8 @@ int rescan_partitions(struct gendisk *disk, struct block_device *bdev)
disk->fops->revalidate_disk(disk);
if (!get_capacity(disk) || !(state = check_partition(disk, bdev)))
return 0;
if (IS_ERR(state)) /* I/O error reading the partition table */
return PTR_ERR(state);
for (p = 1; p < state->limit; p++) {
sector_t size = state->parts[p].size;
sector_t from = state->parts[p].from;
Expand Down

0 comments on commit 01fc35e

Please sign in to comment.