Skip to content

nvme.i: fix crash on ctrl.discover() without a connection#1056

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
hreinecke:py-disc
Aug 28, 2025
Merged

nvme.i: fix crash on ctrl.discover() without a connection#1056
igaw merged 1 commit intolinux-nvme:masterfrom
hreinecke:py-disc

Conversation

@hreinecke
Copy link
Copy Markdown
Collaborator

Calling 'ctrl.discover()' without having called 'nvme.connect()' first causes the application to crash horriby. So add a check for an existing controller connection before trying to fetch the discovery log page.

Calling 'ctrl.discover()' without having called 'nvme.connect()'
first causes the application to crash horriby. So add a check for
an existing controller connection before trying to fetch the discovery
log page.

Signed-off-by: Hannes Reinecke <[email protected]>
@igaw igaw merged commit b686562 into linux-nvme:master Aug 28, 2025
19 of 22 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Aug 28, 2025

Thanks!

@hreinecke hreinecke deleted the py-disc branch September 4, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants