[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CU4OBQ8MQ2LK.2GRBPLQGVTZ3@seitikki>
Date: Mon, 17 Jul 2023 18:54:24 +0000
From: "Jarkko Sakkinen" <jarkko@...nel.org>
To: "Jarkko Sakkinen" <jarkko@...nel.org>,
"Haitao Huang" <haitao.huang@...ux.intel.com>,
<dave.hansen@...ux.intel.com>, <linux-kernel@...r.kernel.org>,
<linux-sgx@...r.kernel.org>,
"Thomas Gleixner" <tglx@...utronix.de>,
"Ingo Molnar" <mingo@...hat.com>, "Borislav Petkov" <bp@...en8.de>,
<x86@...nel.org>, "H. Peter Anvin" <hpa@...or.com>
Cc: <kai.huang@...el.com>, <reinette.chatre@...el.com>,
<kristen@...ux.intel.com>, <seanjc@...gle.com>,
<stable@...r.kernel.org>
Subject: Re: [PATCH] x86/sgx: fix a NULL pointer
On Mon Jul 17, 2023 at 6:53 PM UTC, Jarkko Sakkinen wrote:
> On Mon Jul 17, 2023 at 6:17 PM UTC, Haitao Huang wrote:
> > +static struct sgx_epc_page *sgx_encl_load_secs(struct sgx_encl *encl)
> > +{
> > + struct sgx_epc_page *epc_page = encl->secs.epc_page;
> > +
> > + if (!epc_page) {
> > + epc_page = sgx_encl_eldu(&encl->secs, NULL);
> > + }
>
> remove curly braces
And add an empty line before the return statement.
BR, Jarkko
Powered by blists - more mailing lists