* Bugreports.to..: <Linux390@de.ibm.com>
* (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000
*
- * $Revision: 1.37 $
+ * $Revision: 1.38 $
*/
#include <linux/config.h>
(device->bp_block >> 10),
(device->blocks << device->s2b_shift) >> 1);
rc = 0;
- } else
+ } else {
+ DEV_MESSAGE(KERN_WARNING, device, "%s",
+ "volume has incompatible disk layout");
rc = -EMEDIUMTYPE;
+ }
free_page((long) label);
return rc;
}
* Bugreports.to..: <Linux390@de.ibm.com>
* (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000
*
- * $Revision: 1.59 $
+ * $Revision: 1.61 $
*/
#include <linux/config.h>
"sizes of configuration data mismatch"
"%d (read) vs %ld (expected)",
conf_len, sizeof (struct dasd_eckd_confdata));
+
+ kfree(conf_data); /* allocated by read_conf_data() */
return 0; /* no errror */
}
memcpy(&private->conf_data, conf_data,
sizeof (struct dasd_eckd_confdata));
-
+ kfree(conf_data); /* allocated by read_conf_data() */
return 0;
}