freebsd-skq/sbin/nvmecontrol
David Bright 6995fb5eb7 Fix various Coverity-detected errors in nvmecontrol
This fixes several Coverity-detected errors in nvmecontrol. While in
here, a couple additional errors with shift/mask confusion that were
not diagnosed by Coverity are also fixed.

CIDs addressed: 1040299, 1040300, 1403972, 1403973, 1403985, 1403988,
1403990, 1404374, 1404427, 1404469, 1404510, 1404534, 1418118

CID 1403657 (resource leak of shared library handle) was marked
"intentional" in the Coverity scan database.

Reviewed by:	vangyzen, robert.herndon_dell.com
Reviewed by:	daniel.william.ryan_gmail.com (earlier version)
Reviewed by:	rramsden_isilon.com (earlier version), imp
MFC after:	5 days
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D24203
2020-04-02 13:52:54 +00:00
..
modules Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
comnd.c Assume all the short args have optional args so allocate space for the 2019-09-11 13:34:19 +00:00
comnd.h Create generic command / arg parsing routines 2019-07-16 17:24:03 +00:00
devlist.c Add IOCTL to translate nvdX into nvmeY and NSID. 2019-08-01 21:44:07 +00:00
firmware.c Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
format.c Fix parameter check broken at r350057. 2019-08-03 04:30:22 +00:00
identify_ext.c Fix host memory buffer sizes reporting. 2020-01-06 01:51:23 +00:00
identify.c Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
logpage.c Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
Makefile Fix mismerge. 2019-08-06 18:15:26 +00:00
Makefile.depend
nc_util.c Add SPDX tag. 2019-02-28 02:29:48 +00:00
ns.c Add IOCTL to translate nvdX into nvmeY and NSID. 2019-08-01 21:44:07 +00:00
nsid.c Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
nvmecontrol_ext.h Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
nvmecontrol.8 Add nvmecontrol resv to handle NVMe reservations. 2019-08-05 17:36:00 +00:00
nvmecontrol.c Add IOCTL to translate nvdX into nvmeY and NSID. 2019-08-01 21:44:07 +00:00
nvmecontrol.h Decode few more NVMe log pages. 2019-08-02 20:16:21 +00:00
passthru.c Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
perftest.c Size is unsigned, so remove the test entirely. 2019-09-25 07:51:30 +00:00
power.c Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
reset.c Fix various Coverity-detected errors in nvmecontrol 2020-04-02 13:52:54 +00:00
resv.c Fix alignment issue r350599. 2019-08-05 19:30:28 +00:00
sanitize.c Add nvmecontrol resv to handle NVMe reservations. 2019-08-05 17:36:00 +00:00