Message ID | 20171111084346.GA24802@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 11/11/2017 01:43 AM, Christoph Hellwig wrote: > Do you want to apply this forward ported version of the patch > to your for-4.15/block tree? That should at least make the conflict > go away for Linus when he pulls it. Yeah I will probably add that. I won't kill the conflict, but it'll make it more logically solvable.
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index b4d649039665..592fa6af227f 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2524,7 +2524,7 @@ static umode_t nvme_ns_id_attrs_are_visible(struct kobject *kobj, struct nvme_ns_ids *ids = &dev_to_ns_head(dev)->ids; if (a == &dev_attr_uuid.attr) { - if (uuid_is_null(&ids->uuid) || + if (uuid_is_null(&ids->uuid) && !memchr_inv(ids->nguid, 0, sizeof(ids->nguid))) return 0; }