The branch releng/13.1 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=4b31a7861af02ec5c1528e20d375a7e9813cdc80
commit 4b31a7861af02ec5c1528e20d375a7e9813cdc80 Author: Gordon Tetlow <gor...@freebsd.org> AuthorDate: 2023-02-08 16:16:31 +0000 Commit: Gordon Tetlow <gor...@freebsd.org> CommitDate: 2023-02-08 16:16:31 +0000 Fix sdhci(4) broken write-protect settings. Approved by: so Security: FreeBSD-EN-23:02.sdhci --- sys/dev/sdhci/sdhci_xenon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sdhci/sdhci_xenon.c b/sys/dev/sdhci/sdhci_xenon.c index b6f7513245eb..7ed94907e478 100644 --- a/sys/dev/sdhci/sdhci_xenon.c +++ b/sys/dev/sdhci/sdhci_xenon.c @@ -183,7 +183,7 @@ sdhci_xenon_get_ro(device_t bus, device_t dev) 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