Commit c33059a
committed
ioctl: use dummy passthru command
The ioctl probing is triggering a valgrind report. Let's pass in a empty
command which will return a status code (0x4101) if the ioctl is supported.
==143223== Syscall param ioctl(generic) points to unaddressable byte(s)
==143223== at 0x49BE36D: ioctl (ioctl.c:36)
==143223== by 0x48644AB: __nvme_transport_handle_open_direct (linux.c:110)
==143223== by 0x48646C1: nvme_open (linux.c:169)
==143223== by 0x40DDBD: get_transport_handle (nvme.c:366)
==143223== by 0x40DF00: parse_and_open (nvme.c:404)
==143223== by 0x42F4BC: submit_io (nvme.c:8237)
==143223== by 0x430268: read_cmd (nvme.c:8470)
==143223== by 0x45CDD6: handle_plugin (plugin.c:190)
==143223== by 0x43ACF2: main (nvme.c:11032)
Signed-off-by: Daniel Wagner <[email protected]>1 parent 3c47aa7 commit c33059a
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
0 commit comments