OSDN Git Service

nvme: fix visibility of "uuid" ns attribute
authorMartin Wilck <mwilck@suse.com>
Thu, 28 Sep 2017 19:33:23 +0000 (21:33 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 1 Oct 2017 07:58:04 +0000 (09:58 +0200)
commit007a61ae2f35c7fcf767313285c4924e81f11983
tree50d021b575ac183f08ee8e0b8a23e45728c3d719
parenta5f3d8a5eaaf917878f07998e6f1ea46024e6bab
nvme: fix visibility of "uuid" ns attribute

"uuid" must be invisible if both ns->uuid and ns->nguid are unset,
not if either one is.

Fixes: d934f9848a77 "nvme: provide UUID value to userspace"
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c