Skip to content

fabris: Use doublicate string when merging configs#512

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:fix-merge-config
Oct 28, 2022
Merged

fabris: Use doublicate string when merging configs#512
igaw merged 1 commit intolinux-nvme:masterfrom
igaw:fix-merge-config

Conversation

@igaw
Copy link
Copy Markdown
Collaborator

@igaw igaw commented Oct 28, 2022

We have to use strdup here, because the merged config will be freeing these pointers eventually. Without it, we are going to double free it.

Signed-off-by: Daniel Wagner dwagner@suse.de

Fixes: linux-nvme/nvme-cli#1707

We have to use strdup here, because the merged config will be freeing
these pointers eventually. Without it, we are going to double free it.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
@igaw igaw force-pushed the fix-merge-config branch from 7885cf4 to d187b21 Compare October 28, 2022 14:47
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 28, 2022

Codecov Report

Merging #512 (d187b21) into master (1dd2e76) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master     #512   +/-   ##
=======================================
  Coverage   24.35%   24.35%           
=======================================
  Files          32       32           
  Lines        6012     6012           
  Branches     1247     1247           
=======================================
  Hits         1464     1464           
  Misses       4052     4052           
  Partials      496      496           
Impacted Files Coverage Δ
src/nvme/fabrics.c 4.59% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@igaw igaw merged commit 64a0e52 into linux-nvme:master Oct 28, 2022
@igaw igaw deleted the fix-merge-config branch October 28, 2022 14:51
@martin-belanger martin-belanger mentioned this pull request Nov 7, 2022
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.

nvme connect-all crash while handling config JSON file

3 participants