Commit 09391da
tree: do no free ns on error in nvme_ns_init
The ns pointer is owned by the caller not by nvme_ns_init, thus we can't
just free it on error.
Fixes: 7959f52 ("tree: read all attributes from sysfs when available")
Reported-by: Tomasz Kłoczko <[email protected]>
Signed-off-by: Daniel Wagner <[email protected]>1 parent 142d3c9 commit 09391da
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2473 | 2473 | | |
2474 | 2474 | | |
2475 | 2475 | | |
2476 | | - | |
| 2476 | + | |
2477 | 2477 | | |
2478 | 2478 | | |
2479 | 2479 | | |
| |||
0 commit comments