]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb71b515a9954c627b6397405ef5802702e929d37
tree50d021b575ac183f08ee8e0b8a23e45728c3d719
parentcdf4b1b33ffe1a1fc92d1c9cf08c8c16380b17f0
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: 3188aaf23a68 "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