aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block/dasd.c
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2009-06-12 04:26:37 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2009-06-12 04:27:35 -0400
commit92636b152f3b58e459988934f689619af9e04dbc (patch)
tree2736c3278fcc04cb9488ab740d7ed2dd8d1184a4 /drivers/s390/block/dasd.c
parent45b44d76d373e66d08e0c745dc82ff9123103588 (diff)
[S390] dasd: check_characteristics cleanup
Fix a broken memset (sizeof pointer vs sizeof the underlying structure) by cleaning up the involved functions. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd.c')
-rw-r--r--drivers/s390/block/dasd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c
index 27a1be0cd4d4..35f43bea5d07 100644
--- a/drivers/s390/block/dasd.c
+++ b/drivers/s390/block/dasd.c
@@ -2427,12 +2427,12 @@ static struct dasd_ccw_req *dasd_generic_build_rdc(struct dasd_device *device,
2427 2427
2428 2428
2429int dasd_generic_read_dev_chars(struct dasd_device *device, char *magic, 2429int dasd_generic_read_dev_chars(struct dasd_device *device, char *magic,
2430 void **rdc_buffer, int rdc_buffer_size) 2430 void *rdc_buffer, int rdc_buffer_size)
2431{ 2431{
2432 int ret; 2432 int ret;
2433 struct dasd_ccw_req *cqr; 2433 struct dasd_ccw_req *cqr;
2434 2434
2435 cqr = dasd_generic_build_rdc(device, *rdc_buffer, rdc_buffer_size, 2435 cqr = dasd_generic_build_rdc(device, rdc_buffer, rdc_buffer_size,
2436 magic); 2436 magic);
2437 if (IS_ERR(cqr)) 2437 if (IS_ERR(cqr))
2438 return PTR_ERR(cqr); 2438 return PTR_ERR(cqr);