source: patches/linux-2.6.16.5-sun_disklabel_fix-1.patch@ a33dbaa

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a33dbaa was 5c5752c, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: sun disklabel patches. Tar Security Patch.

  • Property mode set to 100644
File size: 682 bytes
  • fs/partitions/sun.c

    Submitted By: Joe Ciccone <joeciccone at crazyeyesoft dot com>
    Date: 2006-04-14
    Initial Package Version: 2.6.16
    Upstream Status: Sent
    Origin: Joe Ciccone
    Description: This patch fixes fdisk so that it can properly calculate the
                 checksum of a sun disklabel
    
    old new  
    6161        }
    6262        /* Look at the checksum */
    6363        ush = ((__be16 *) (label+1)) - 1;
    64         for (csum = 0; ush >= ((__be16 *) label);)
     64        while (ush < (__be16 *) label)
    6565                csum ^= *ush--;
    6666        if (csum) {
    6767                printk("Dev %s Sun disklabel: Csum bad, label corrupted\n",
Note: See TracBrowser for help on using the repository browser.