Commit 552ed6c5 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] fix of bug in previous DAC960 patch

Missed memset() when switching DAC960 to alloc_disk().  Fixed.
parent 664b1b99
...@@ -1959,7 +1959,6 @@ static boolean DAC960_RegisterBlockDevice(DAC960_Controller_T *Controller) ...@@ -1959,7 +1959,6 @@ static boolean DAC960_RegisterBlockDevice(DAC960_Controller_T *Controller)
Controller->RequestQueue = RequestQueue; Controller->RequestQueue = RequestQueue;
for (n = 0; n < DAC960_MaxLogicalDrives; n++) { for (n = 0; n < DAC960_MaxLogicalDrives; n++) {
struct gendisk *disk = Controller->disks[n]; struct gendisk *disk = Controller->disks[n];
memset(disk, 0, sizeof(struct gendisk));
sprintf(disk->disk_name, "rd/c%dd%d", Controller->ControllerNumber, n); sprintf(disk->disk_name, "rd/c%dd%d", Controller->ControllerNumber, n);
disk->major = MajorNumber; disk->major = MajorNumber;
disk->first_minor = n << DAC960_MaxPartitionsBits; disk->first_minor = n << DAC960_MaxPartitionsBits;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment