Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Oct 2017 21:57:14 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324776 - head/sys/dev/mmc
Message-ID:  <201710192157.v9JLvEE2075831@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Thu Oct 19 21:57:14 2017
New Revision: 324776
URL: https://svnweb.freebsd.org/changeset/base/324776

Log:
  Correct an inverted conditional for determining the multiplier of
  the user data area size.

Modified:
  head/sys/dev/mmc/mmcsd.c

Modified: head/sys/dev/mmc/mmcsd.c
==============================================================================
--- head/sys/dev/mmc/mmcsd.c	Thu Oct 19 21:34:53 2017	(r324775)
+++ head/sys/dev/mmc/mmcsd.c	Thu Oct 19 21:57:14 2017	(r324776)
@@ -327,7 +327,7 @@ mmcsd_attach(device_t dev)
 			    (ext_csd[EXT_CSD_ENH_START_ADDR + 1] << 8) +
 			    (ext_csd[EXT_CSD_ENH_START_ADDR + 2] << 16) +
 			    (ext_csd[EXT_CSD_ENH_START_ADDR + 3] << 24)) *
-			    (sc->high_cap != 0 ? MMC_SECTOR_SIZE : 1);
+			    (sc->high_cap == 0 ? MMC_SECTOR_SIZE : 1);
 		} else if (bootverbose)
 			device_printf(dev,
 			    "enhanced user data area spans entire device\n");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710192157.v9JLvEE2075831>