From mboxrd@z Thu Jan 1 00:00:00 1970
Subject: FatPkg: Fix EnhancedFatDxe driver coverity issues
To: devel@edk2.groups.io
From: Ranbir.Singh3@Dell.com
X-Originating-Location: Bengaluru, Karnataka, IN (122.172.81.249)
X-Originating-Platform: Windows Chrome 108
User-Agent: GROUPS.IO Web Poster
MIME-Version: 1.0
Date: Thu, 22 Dec 2022 02:02:29 -0800
Message-ID: <5nHJ.1671703349525859193.DxyM@groups.io>
X-Groupsio-MsgNum: 97759
Content-Type: multipart/mixed; boundary="686XeDXQMyh7xRNujApy"
--686XeDXQMyh7xRNujApy
Content-Type: multipart/alternative; boundary="jplkymWFzqjGEcJhLxBK"
--jplkymWFzqjGEcJhLxBK
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hi All,
Attached patch contains the changes fixing the issues pointed by Coverity s=
can on FatPkg component.
Please review if the changes are safe to be considered.
--jplkymWFzqjGEcJhLxBK
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hi All,
Attached patch contains the changes fixing the issues po=
inted by Coverity scan on FatPkg component.
Please review if the=
changes are safe to be considered.
--jplkymWFzqjGEcJhLxBK--
--686XeDXQMyh7xRNujApy
Content-Type: text/plain; name="0001-FatPkg-Fix-EnhancedFatDxe-driver-coverity-issues.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="0001-FatPkg-Fix-EnhancedFatDxe-driver-coverity-issues.patch"
RnJvbSAyYmUyZjE0N2IxMTkzYTE1YjZhYWM3ZTIzMWM2N2ZmMzE4ZmNiOWVlIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBSYW5iaXIgU2luZ2ggPFJhbmJpci5TaW5naDNARGVsbC5jb20+
CkRhdGU6IFdlZCwgMjEgRGVjIDIwMjIgMTY6NTM6MjkgKzA1MzAKU3ViamVjdDogW1BBVENIXSBG
YXRQa2c6IEZpeCBFbmhhbmNlZEZhdER4ZSBkcml2ZXIgY292ZXJpdHk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