Author: oleg
Date: Thu Aug 31 12:36:09 2017
New Revision: 323050
URL: https://svnweb.freebsd.org/changeset/base/323050

Log:
  MFC r322628: Fix BSD label partition end sector calculation.
  
  Differential Revision:        https://reviews.freebsd.org/D12066

Modified:
  stable/11/sys/boot/common/part.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/boot/common/part.c
==============================================================================
--- stable/11/sys/boot/common/part.c    Thu Aug 31 12:02:14 2017        
(r323049)
+++ stable/11/sys/boot/common/part.c    Thu Aug 31 12:36:09 2017        
(r323050)
@@ -486,7 +486,7 @@ ptable_bsdread(struct ptable *table, void *dev, diskre
                        break;
                entry->part.start = le32toh(part->p_offset) - raw_offset;
                entry->part.end = entry->part.start +
-                   le32toh(part->p_size) + 1;
+                   le32toh(part->p_size) - 1;
                entry->part.type = bsd_parttype(part->p_fstype);
                entry->part.index = i; /* starts from zero */
                entry->type.bsd = part->p_fstype;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to