Skip to content

[pull] master from linux-nvme:master#244

Merged
pull[bot] merged 1 commit into
zengqingfu1442:masterfrom
linux-nvme:master
Jun 29, 2026
Merged

[pull] master from linux-nvme:master#244
pull[bot] merged 1 commit into
zengqingfu1442:masterfrom
linux-nvme:master

Conversation

@pull

@pull pull Bot commented Jun 29, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Replace strdup() with xstrdup() when duplicating the subsystem NQN.
Unlike strdup(), xstrdup() safely returns NULL when passed a NULL
pointer, avoiding undefined behavior if subsysnqn is NULL.

Also check the return value from xstrdup() and bail out early if
duplicating the subsystem NQN fails, either because the input pointer
is NULL or because memory allocation was unsuccessful.

This issue was reported by the clang static analyzer.

Signed-off-by: Sarah Ahmed <sarah.ahmed@ibm.com>
@pull pull Bot locked and limited conversation to collaborators Jun 29, 2026
@pull pull Bot added the ⤵️ pull label Jun 29, 2026
@pull
pull Bot merged commit 7e9b738 into zengqingfu1442:master Jun 29, 2026
30 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant