Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15503
b: refs/heads/master
c: 4fb729f
h: refs/heads/master
i:
  15501: df28bef
  15499: 091e6dc
  15495: fbfb537
  15487: 30c37ef
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Jan 4, 2006
1 parent 46f5a23 commit 8760030
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 2c26c9e6b4993a1a1231849feff4b6518a4fc239
refs/heads/master: 4fb729f5863c29e4466afb4508186303f46458e7
6 changes: 3 additions & 3 deletions trunk/drivers/block/ub.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
/*
*/

#define UB_MINORS_PER_MAJOR 8
#define UB_PARTS_PER_LUN 8

#define UB_MAX_CDB_SIZE 16 /* Corresponds to Bulk */

Expand Down Expand Up @@ -2473,14 +2473,14 @@ static int ub_probe_lun(struct ub_dev *sc, int lnum)
ub_revalidate(sc, lun);

rc = -ENOMEM;
if ((disk = alloc_disk(UB_MINORS_PER_MAJOR)) == NULL)
if ((disk = alloc_disk(UB_PARTS_PER_LUN)) == NULL)
goto err_diskalloc;

lun->disk = disk;
sprintf(disk->disk_name, DRV_NAME "%c", lun->id + 'a');
sprintf(disk->devfs_name, DEVFS_NAME "/%c", lun->id + 'a');
disk->major = UB_MAJOR;
disk->first_minor = lun->id * UB_MINORS_PER_MAJOR;
disk->first_minor = lun->id * UB_PARTS_PER_LUN;
disk->fops = &ub_bd_fops;
disk->private_data = lun;
disk->driverfs_dev = &sc->intf->dev;
Expand Down

0 comments on commit 8760030

Please sign in to comment.