Commit d2e2556
committed
nvme: clear caller pointer on identify failure
JIRA: https://issues.redhat.com/browse/RHEL-25547
The memory allocated for the identification is freed on failure. Set
it to NULL so the caller doesn't have a pointer to that freed address.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
(cherry picked from commit 7e80eb7)
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>1 parent 5db2347 commit d2e2556
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | | - | |
| 1426 | + | |
1427 | 1427 | | |
| 1428 | + | |
| 1429 | + | |
1428 | 1430 | | |
1429 | 1431 | | |
1430 | 1432 | | |
| |||
1553 | 1555 | | |
1554 | 1556 | | |
1555 | 1557 | | |
| 1558 | + | |
1556 | 1559 | | |
1557 | 1560 | | |
1558 | 1561 | | |
| |||
0 commit comments