Skip to content

Commit 3a1eaf4

Browse files
Arunpandian Jdwsuse
authored andcommitted
util: Add status code values in generic status to errno conversion
Signed-off-by: Arunpandian J <[email protected]>
1 parent 78220d3 commit 3a1eaf4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/nvme/util.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ static inline __u8 nvme_generic_status_to_errno(__u16 status)
3535
case NVME_SC_SGL_INVALID_METADATA:
3636
case NVME_SC_SGL_INVALID_TYPE:
3737
case NVME_SC_SGL_INVALID_OFFSET:
38+
case NVME_SC_PRP_INVALID_OFFSET:
39+
case NVME_SC_CMB_INVALID_USE:
3840
return EINVAL;
3941
case NVME_SC_CMDID_CONFLICT:
4042
return EADDRINUSE;

0 commit comments

Comments
 (0)