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)
Jan 5 2024, 6:12 PM
Unknown Object (File)
Dec 22 2023, 9:39 PM
Unknown Object (File)
Dec 16 2023, 2:48 PM
Unknown Object (File)
Nov 25 2023, 9:04 PM
Unknown Object (File)
Nov 23 2023, 12:25 AM
Unknown Object (File)
Nov 22 2023, 3:18 PM
Unknown Object (File)
Nov 12 2023, 2:48 PM
Unknown Object (File)
Sep 3 2023, 10:13 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.