Skip to content
Snippets Groups Projects
Commit 22811226 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

nvmet: fix invalid access to self.subsystems in the Namespace constructor


Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 6e32601e
No related branches found
No related tags found
No related merge requests found
......@@ -456,7 +456,7 @@ class Namespace(CFSNode):
raise CFSError("Invalid parent class")
if nsid is None:
nsids = [n.nsid for n in self.subsystem.namespaces]
nsids = [n.nsid for n in subsystem.namespaces]
for index in xrange(1, self.MAX_NSID + 1):
if index not in nsids:
nsid = index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment