Fix a divide-by-zero crash and two memory leaks in the NVMe code
Merge Request Required Information
JIRA: https://issues.redhat.com/browse/RHEL-14751 Upstream Status: git://git.infradead.org/nvme.git branch "nvme-6.7" Signed-off-by: Ewan D. Milne emilne@redhat.com
Summary of Changes
Fixes regression introduced by upstream change which stopped checking for valid NVMe IDENTIFY NAMESPACE data, resulting in a crash.
Also fixed 2 memory leaks caused by failure to free memory in error case.
Approved Development Ticket
All submissions to CentOS Stream must reference an approved ticket in Red Hat Jira. Please follow the CentOS Stream contribution documentation for how to file this ticket and have it approved.