|
@@ -260,7 +260,7 @@ dasd_ioctl_information(struct dasd_device *device,
|
|
if (!device->discipline->fill_info)
|
|
if (!device->discipline->fill_info)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- dasd_info = kmalloc(sizeof(struct dasd_information2_t), GFP_KERNEL);
|
|
|
|
|
|
+ dasd_info = kzalloc(sizeof(struct dasd_information2_t), GFP_KERNEL);
|
|
if (dasd_info == NULL)
|
|
if (dasd_info == NULL)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
@@ -303,8 +303,7 @@ dasd_ioctl_information(struct dasd_device *device,
|
|
memcpy(dasd_info->type, device->discipline->name, 4);
|
|
memcpy(dasd_info->type, device->discipline->name, 4);
|
|
else
|
|
else
|
|
memcpy(dasd_info->type, "none", 4);
|
|
memcpy(dasd_info->type, "none", 4);
|
|
- dasd_info->req_queue_len = 0;
|
|
|
|
- dasd_info->chanq_len = 0;
|
|
|
|
|
|
+
|
|
if (device->request_queue->request_fn) {
|
|
if (device->request_queue->request_fn) {
|
|
struct list_head *l;
|
|
struct list_head *l;
|
|
#ifdef DASD_EXTENDED_PROFILING
|
|
#ifdef DASD_EXTENDED_PROFILING
|