Commit dd010bd7 authored by Mika Westerberg's avatar Mika Westerberg Committed by Greg Kroah-Hartman

thunderbolt: Handle NULL boot ACL entries properly

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: 9aaa3b8b ("thunderbolt: Add support for preboot ACL")
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: default avatarYehezkel Bernat <yehezkelshb@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6da6c0db
...@@ -1255,7 +1255,7 @@ static int icm_ar_get_boot_acl(struct tb *tb, uuid_t *uuids, size_t nuuids) ...@@ -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 */ /* Map empty entries to null UUID */
uuid[0] = 0; uuid[0] = 0;
uuid[1] = 0; uuid[1] = 0;
} else { } else if (uuid[0] != 0 || uuid[1] != 0) {
/* Upper two DWs are always one's */ /* Upper two DWs are always one's */
uuid[2] = 0xffffffff; uuid[2] = 0xffffffff;
uuid[3] = 0xffffffff; uuid[3] = 0xffffffff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment