From 4a74a87d1eefd07bf798a2a0c69fb81f4593061d Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Sat, 28 Nov 2020 10:08:11 +0100 Subject: [PATCH] bcm57xx: Fix CRC check --- plugins/bcm57xx/fu-bcm57xx-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/bcm57xx/fu-bcm57xx-common.c b/plugins/bcm57xx/fu-bcm57xx-common.c index 42434c661..d7df0cf58 100644 --- a/plugins/bcm57xx/fu-bcm57xx-common.c +++ b/plugins/bcm57xx/fu-bcm57xx-common.c @@ -14,7 +14,7 @@ guint32 fu_bcm57xx_nvram_crc (const guint8 *buf, gsize bufsz) { - return GUINT32_FROM_BE(fu_common_crc32 (buf, bufsz)); + return GUINT32_SWAP_LE_BE (fu_common_crc32 (buf, bufsz)); } gboolean