Date: Wed, 8 Feb 2023 18:15:17 GMT From: Gordon Tetlow <gordon@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 4b31a7861af0 - releng/13.1 - Fix sdhci(4) broken write-protect settings. Message-ID: <202302081815.318IFH7k022284@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch releng/13.1 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=4b31a7861af02ec5c1528e20d375a7e9813cdc80 commit 4b31a7861af02ec5c1528e20d375a7e9813cdc80 Author: Gordon Tetlow <gordon@FreeBSD.org> AuthorDate: 2023-02-08 16:16:31 +0000 Commit: Gordon Tetlow <gordon@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302081815.318IFH7k022284>