Page MenuHomeFreeBSD

Misc Coverity fixes in camcontrol(8)
ClosedPublic

Authored by asomers on Jan 19 2017, 12:37 AM.
Tags
None
Referenced Files
F120224308: D9239.diff
Mon, Jun 16, 5:18 AM
Unknown Object (File)
Sun, Jun 1, 4:07 AM
Unknown Object (File)
Tue, May 20, 5:29 AM
Unknown Object (File)
May 1 2025, 7:50 PM
Unknown Object (File)
Apr 25 2025, 4:08 PM
Unknown Object (File)
Apr 24 2025, 3:12 AM
Unknown Object (File)
Apr 24 2025, 3:12 AM
Unknown Object (File)
Apr 24 2025, 3:12 AM
Subscribers

Details

Summary

Misc Coverity fixes in camcontrol(8)

CID 1229913 Fix output of "camcontrol persist -i report_capabilities".

		The reported Persistent Reservation Types are currently wrong
		in all cases.

CID 1356029 Annotate the code so Coverity will know that this is a false

		positive.

CID 1366830 Fix a memory leak
CID 1366832 Fix a segfault that could be caused by bad drive firmware

Also, fix the man page entry for the "camcontrol epc state" command to match
what the code does.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

asomers retitled this revision from to Misc Coverity fixes in camcontrol(8).
asomers updated this object.
asomers edited the test plan for this revision. (Show Details)
asomers added a reviewer: ken.
ken edited edge metadata.

Looks good, thank you!

This revision is now accepted and ready to land.Jan 19 2017, 9:30 PM
wblock added inline comments.
sbin/camcontrol/camcontrol.8
2386 ↗(On Diff #24178)

"Either" reads a bit better.

Please remember to bump .Dd, too. Thanks!

sbin/camcontrol/camcontrol.8
2386 ↗(On Diff #24178)

To me, "either" suggests an OR relationship. But in this case, the two options have an XOR relationship. So I prefer "One of" in this case.

sbin/camcontrol/camcontrol.8
2386 ↗(On Diff #24178)

"Either A or B" is the way exclusive or is generally stated in English but I understand the point. Thanks!

This revision was automatically updated to reflect the committed changes.