Page MenuHomeFreeBSD

Misc Coverity fixes in camcontrol(8)
ClosedPublic

Authored by asomers on Jan 19 2017, 12:37 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 5, 3:12 PM
Unknown Object (File)
Sun, Feb 23, 5:49 PM
Unknown Object (File)
Feb 15 2025, 6:16 PM
Unknown Object (File)
Feb 8 2025, 10:56 AM
Unknown Object (File)
Jan 23 2025, 6:45 AM
Unknown Object (File)
Oct 18 2024, 7:41 AM
Unknown Object (File)
Oct 10 2024, 12:54 PM
Unknown Object (File)
Sep 30 2024, 2:52 PM
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.