[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180507122024.GA2879@lahna.fi.intel.com>
Date: Mon, 7 May 2018 15:20:24 +0300
From: Mika Westerberg <mika.westerberg@...ux.intel.com>
To: Yehezkel Bernat <yehezkelshb@...il.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Andreas Noever <andreas.noever@...il.com>,
michael.jamet@...el.com
Subject: Re: [PATCH v2] thunderbolt: Handle NULL boot ACL entries properly
On Tue, May 01, 2018 at 06:56:13PM +0000, Yehezkel Bernat wrote:
> On Mon, Apr 30, 2018 at 2:12 PM Mika Westerberg <
> mika.westerberg@...ux.intel.com> wrote:
>
> > If the boot ACL entry is already NULL we should not fill in the upper
> > two DWs with 0xfffffffff. Otherwise they are not shown as empty entries
> > when the sysfs attribute is read.
>
> > Fixes: 9aaa3b8b4c56 ("thunderbolt: Add support for preboot ACL")
> > Signed-off-by: Mika Westerberg <mika.westerberg@...ux.intel.com>
> > ---
> > Changes from v1 (https://lkml.org/lkml/2018/4/27/845):
>
> > * Use || instead of && to make sure UUIDs with only one zero DW
> > are still treated as valid.
>
> > drivers/thunderbolt/icm.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> > diff --git a/drivers/thunderbolt/icm.c b/drivers/thunderbolt/icm.c
> > index 2d2ceda9aa26..500911f16498 100644
> > --- a/drivers/thunderbolt/icm.c
> > +++ b/drivers/thunderbolt/icm.c
> > @@ -1255,7 +1255,7 @@ static int icm_ar_get_boot_acl(struct tb *tb,
> uuid_t *uuids, size_t nuuids)
> > /* Map empty entries to null UUID */
> > uuid[0] = 0;
> > uuid[1] = 0;
> > - } else {
> > + } else if (uuid[0] != 0 || uuid[1] != 0) {
> > /* Upper two DWs are always one's */
> > uuid[2] = 0xffffffff;
> > uuid[3] = 0xffffffff;
> > --
> > 2.17.0
>
>
> Acked-by: Yehezkel Bernat <yehezkelshb@...il.com>
Applied to thunderbolt.git/fixes.
Powered by blists - more mailing lists