aboutsummaryrefslogtreecommitdiff
path: root/website/static/security/patches/EN-23:02/sdhci.patch
blob: 1582faebb85f2f1b238f7ab9f3585726877d6b10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- sys/dev/sdhci/sdhci_xenon.c.orig
+++ sys/dev/sdhci/sdhci_xenon.c
@@ -183,7 +183,7 @@
 	struct sdhci_xenon_softc *sc = device_get_softc(bus);
 
 	return (sdhci_generic_get_ro(bus, dev) ^
-	    (sc->mmc_helper.props & MMC_PROP_WP_INVERTED));
+	    !!(sc->mmc_helper.props & MMC_PROP_WP_INVERTED));
 }
 
 static bool