]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] s390: dasd partitions.
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 26 Sep 2003 01:02:30 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Fri, 26 Sep 2003 01:02:30 +0000 (18:02 -0700)
Fix bug in CMS label recognition in ibm.c

fs/partitions/ibm.c

index 64dbffe4dd686145a1234faae1ec02d6ce7a5108..a230fa7fefe2d98cf494b74de2ac33b9130d0f60 100644 (file)
@@ -9,6 +9,7 @@
  * 07/10/00 Fixed detection of CMS formatted disks     
  * 02/13/00 VTOC partition support added
  * 12/27/01 fixed PL030593 (CMS reserved minidisk not detected on 64 bit)
+ * 07/24/03 no longer using contents of freed page for CMS label recognition (BZ3611)
  */
 
 #include <linux/config.h>
@@ -98,7 +99,7 @@ ibm_partition(struct parsed_partitions *state, struct block_device *bdev)
                /*
                 * VM style CMS1 labeled disk
                 */
-               int *label = (int *) data;
+               int *label = (int *) vlabel;
 
                if (label[13] != 0) {
                        printk("CMS1/%8s(MDSK):", name);