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::243; helo=mail-lf0-x243.google.com; envelope-from=mw@semihalf.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) (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 BB4702034A873 for ; Fri, 27 Oct 2017 09:28:51 -0700 (PDT) Received: by mail-lf0-x243.google.com with SMTP id n69so8032194lfn.2 for ; Fri, 27 Oct 2017 09:32:39 -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=62MZxKGrLwDNAL7VVdwiAB+eOx/7pEIj1NCX96CROZs=; b=ocQk3KjTJGTBp1Eo9mPp/MDsk7hq5B2FjC8JInTPiLFnRSC6W2LwUzbC73SOqmGa4+ MKGF53Q85XTAtSHmpvLWheeD525X2OmitnswGVUgcijyms9+DIWSS/6KL8K6C/2alOTZ Di4kU9GOrEbjZEeWguPZazWUXxCsTg4fVWtNpzeyhkdOED2Ctk+/0R4tlaJMNMf6G/+k U+fd/nP+hwUDD634IqXP26ss8VvZT/X+NUH7Q/XmR1QLQbx6Ev6lgDhygTq79FBKRPbo 13YbT7BdyCttOsi82GAE0fgRTjLFUmPConMZ5obl570ds6yPMN0QB4WMdWp+QiT7eKTC 0mrw== 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=62MZxKGrLwDNAL7VVdwiAB+eOx/7pEIj1NCX96CROZs=; b=cunan0vNwWBtZKOE7YzMI6GZHDbNYvV9iBAPlyUk007NR61B/paZhO0fcvwFT5Rq49 2Ez+gLm6UKn0fzMIq7dtRTWmK7IpAf/57d3JysVD0PCTnzvbDVyDbRmkx0JVPL0FtJHO 04Jt5iOTXuJlCPnkv2SYWn8ZFer7R5BT/FH973/ngo0Jjm2MXViWTe16q3tZtPQoK3Zo yWvTPLo53oEBMpElgFI1a88wH22JaHbpRFqiQQtXVz9GN+k7pJHJFnFx8/uz8v2Lhdx9 lxq8Can1VsMcbSfZ0JAO+2oNum8i+sC2iptxCi60nfhp09UTvmQD/lZC3TO9DeoRiESG ZQVA== X-Gm-Message-State: AMCzsaUI9ZAfTBCMZwLSnYFYuqtqVdAwj3m/IEJolesfz+mbgGIBhawj 2UzrdPwcDzGvMf9O4FTla/lrOic7yPE= X-Google-Smtp-Source: ABhQp+QByB7KFyvCP0zulcwuPMHCy5kXs8jFla7qB2GPfxLy648P9fxptZ5K0ZoCiv6zPjNeluXLXQ== X-Received: by 10.25.165.212 with SMTP id o203mr355924lfe.204.1509121957110; Fri, 27 Oct 2017 09:32:37 -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 h3sm1569222lfj.26.2017.10.27.09.32.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Oct 2017 09:32:36 -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: Fri, 27 Oct 2017 18:31:45 +0200 Message-Id: <1509121913-12937-3-git-send-email-mw@semihalf.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1509121913-12937-1-git-send-email-mw@semihalf.com> References: <1509121913-12937-1-git-send-email-mw@semihalf.com> Subject: [platforms: PATCH v3 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: Fri, 27 Oct 2017 16:28:52 -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 Reviewed-by: Leif Lindholm --- 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 b4599d2..a62383f 100755 --- a/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c +++ b/Platform/Marvell/Drivers/I2c/MvI2cDxe/MvI2cDxe.c @@ -627,7 +627,7 @@ MvI2cStartRequest ( } if (I2cStatus != NULL) - I2cStatus = EFI_SUCCESS; + *I2cStatus = EFI_SUCCESS; if (Event != NULL) gBS->SignalEvent(Event); return EFI_SUCCESS; -- 2.7.4