Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220129
b: refs/heads/master
c: 9bed00f
h: refs/heads/master
i:
  220127: 4eba29e
v: v3
  • Loading branch information
David Cross authored and Greg Kroah-Hartman committed Oct 6, 2010
1 parent 1a578de commit 913c052
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 54930e889238200d82d3a35cc12fae4b5f5c22f5
refs/heads/master: 9bed00f20dc9f2e86b1834a5a30648f5728a51f8
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ int cyasblkdev_media_changed(struct gendisk *gd)
}

/* return media change state "1" yes, 0 no */
return 1;
return 0;
}

/* this one called by kernel to give us a chence
Expand Down Expand Up @@ -1111,7 +1111,8 @@ static int cyasblkdev_add_disks(int bus_num,
* public partition beginning */
if (vfat_search) {
bd->user_disk_0_first_sector =
cyasblkdev_get_vfat_offset(0,
cyasblkdev_get_vfat_offset(
bd->user_disk_0_bus_num,
bd->user_disk_0_unit_no);
} else {
bd->user_disk_0_first_sector = 0;
Expand Down Expand Up @@ -1244,7 +1245,8 @@ static int cyasblkdev_add_disks(int bus_num,
if (vfat_search) {
bd->user_disk_1_first_sector =
cyasblkdev_get_vfat_offset(
1, bd->user_disk_1_unit_no);
bd->user_disk_1_bus_num,
bd->user_disk_1_unit_no);
} else {
bd->user_disk_1_first_sector
= 0;
Expand All @@ -1256,8 +1258,8 @@ static int cyasblkdev_add_disks(int bus_num,
if (lcl_unit_no > 0) {
if (bd->system_disk == NULL) {
bd->system_disk =
alloc_disk(CYASBLKDEV_MINOR_2
<< CYASBLKDEV_SHIFT);
alloc_disk(8);

if (bd->system_disk == NULL) {
kfree(bd);
bd = ERR_PTR(-ENOMEM);
Expand Down Expand Up @@ -1423,8 +1425,7 @@ static struct cyasblkdev_blk_data *cyasblkdev_blk_alloc(void)
if (bd->user_disk_0 == NULL) {

bd->user_disk_0 =
alloc_disk(CYASBLKDEV_MINOR_0
<< CYASBLKDEV_SHIFT);
alloc_disk(8);
if (bd->user_disk_0 == NULL) {
kfree(bd);
bd = ERR_PTR(-ENOMEM);
Expand All @@ -1443,8 +1444,7 @@ static struct cyasblkdev_blk_data *cyasblkdev_blk_alloc(void)
if (total_media_count == 2) {
if (bd->user_disk_1 == NULL) {
bd->user_disk_1 =
alloc_disk(CYASBLKDEV_MINOR_1
<< CYASBLKDEV_SHIFT);
alloc_disk(8);
if (bd->user_disk_1 == NULL) {
kfree(bd);
bd = ERR_PTR(-ENOMEM);
Expand Down

0 comments on commit 913c052

Please sign in to comment.