From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:4010:c07::241; helo=mail-lf0-x241.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x241.google.com (mail-lf0-x241.google.com [IPv6:2a00:1450:4010:c07::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 04CA12034CF85 for ; Wed, 25 Oct 2017 18:16:15 -0700 (PDT) Received: by mail-lf0-x241.google.com with SMTP id w21so1936706lfc.6 for ; Wed, 25 Oct 2017 18:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=neItHWEozlAbutULwk5Bmm8kNH6fXnfKEqO94bUc5cA=; b=JZvU/L/TYnXJXXBShTDkwgq+ElvHLXaM90EOT+0E2nJFrqqj476osw/eFDujhdoNrs nxEvLKjWQlSAaiTz6vq6zCbXhSzLLXLYzItV4WxEAR+vZ25WQjCIf9fTkod33BnGziud 6J6CLvn9J/HihXhTS913qVPZV8qyF3yHJEDVkaZhs3uxvIEtDz7ML7cQF6eGi8UvpCxk 1mcvEpGU9xeBUHXnLNznWhBG/bALAdaXSWcgW2y5h8iDQ+fKeTHO8NzCjOJbo9nGpC/H yXR0LtQdBXNtoWjGGDkXAtcQRMO/C8jiHOJrVDnk7XaIrQpCvlg6yweVv6Lfc/SDKtDO QLgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=neItHWEozlAbutULwk5Bmm8kNH6fXnfKEqO94bUc5cA=; b=G6fXpJd4oWalvoulsYSVhS3pZpYCcfvOPuEFXiOzTS6OXU7Rn54RJ1gqTrtsIiHLxA /EVmlxnvXTWpq1oZ0f0g37Z1lIma+e1fhIsEPVs1ByThUhNI3/Gm6zJiV8ibWjdoc+XQ xAquHUagVwxjWUFibIm15m9W/miGoyiZ7tzKRtlv146sGkhlkz8qXRs124gRHt0JYR5e XMqIytBbxV1ucxSEz68+KV/UEaP5+72oSfpW7DR15rpbt0Pw3DmUt9IcuS/sW52tWiN8 WDANUU7THReREWDmfKL6frCTF/BT6euofWg19gqCgJVtHY6lMw/3x5rjq05RNnedeQo+ 3fXg== X-Gm-Message-State: AMCzsaUoLq4k5w1ZnBmA+BqJ4XsMtDTXchX9mfYoZxM0LK/qHuyItilu tcMLS1wXPuCYOTXGHMH2zX246Uvgcg8= X-Google-Smtp-Source: ABhQp+RvbmQtFvoCVFJ/zUB1vW9cB3QRJ9WgafIoRmdYVk9dUCGKy9zQJFkLe0xecLDSrZiU5ms7EQ== X-Received: by 10.25.0.216 with SMTP id 207mr7661314lfa.242.1508980799761; Wed, 25 Oct 2017 18:19:59 -0700 (PDT) Received: from gilgamesh.semihalf.com (31-172-191-173.noc.fibertech.net.pl. [31.172.191.173]) by smtp.gmail.com with ESMTPSA id h26sm1053428lja.69.2017.10.25.18.19.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Oct 2017 18:19:59 -0700 (PDT) From: Marcin Wojtas To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org, nadavh@marvell.com, neta@marvell.com, kostap@marvell.com, jinghua@marvell.com, mw@semihalf.com, jsd@semihalf.com Date: Thu, 26 Oct 2017 03:19:29 +0200 Message-Id: <1508980777-29006-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508980777-29006-1-git-send-email-mw@semihalf.com> References: <1508980777-29006-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH 02/10] Marvell/Drivers: MvI2cDxe: Fix returning status in MvI2cStartRequest X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 01:16:16 -0000 In MvI2cStartRequest the status was assigned to the variable without dereferencing a pointer. Fix it. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marcin Wojtas --- Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c b/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c index 7faf1f7..8ed96f0 100755 --- a/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c +++ b/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c @@ -631,7 +631,7 @@ MvI2cStartRequest ( } if (I2cStatus != NULL) - I2cStatus = EFI_SUCCESS; + *I2cStatus = Status; if (Event != NULL) gBS->SignalEvent(Event); return EFI_SUCCESS; -- 2.7.4