]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: fix io_mgmt args parse error
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Mon, 17 Apr 2023 03:09:59 +0000 (12:09 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 17 Apr 2023 09:28:30 +0000 (11:28 +0200)
commitcfc450f434121da77a619289d18b9c05c64ff33f
tree9e1a41382370404a439093bca8cc91514469411d
parent13ebfeec99abb9d8e52cf6378a308f1edf9c5622
nvme: fix io_mgmt args parse error

Since mos defined __u16, it should be parsed with OPT_SHRT
if mos given right after mo, it cause parse error
mo always set as 0

Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Co-authored-by: Minsik Jeon <hmi.jeon@samsung.com>
Reported-by: Youngjin Jung <yj4369.jung@samsung.com>
nvme.c