<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/dev/pms, branch release/12.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F12.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F12.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2017-10-21T07:23:45Z</updated>
<entry>
<title>pms/freebsd: fix compiler warnings</title>
<updated>2017-10-21T07:23:45Z</updated>
<author>
<name>Ryan Libby</name>
<email>rlibby@FreeBSD.org</email>
</author>
<published>2017-10-21T07:23:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2efbd10aded4018c33c9938c5acc151021370d3a'/>
<id>urn:sha1:2efbd10aded4018c33c9938c5acc151021370d3a</id>
<content type='text'>
 - A number of unused variable warnings,
 - a missing prototype warning (actually a dead function),
 - and a potential use of an uninitialized variable.

Reviewed by:	pfg
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D12683
</content>
</entry>
<entry>
<title>sys/dev: Replace zero with NULL for pointers.</title>
<updated>2017-02-20T03:43:12Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-02-20T03:43:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4d24901ac9131267fd188c5e1ee19a219847238a'/>
<id>urn:sha1:4d24901ac9131267fd188c5e1ee19a219847238a</id>
<content type='text'>
Makes things easier to read, plus architectures may set NULL to something
different than zero.

Found with:	devel/coccinelle
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name)</title>
<updated>2017-01-04T20:26:42Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2017-01-04T20:26:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4195c7de2471d6212744bcbf128d659e94801d17'/>
<id>urn:sha1:4195c7de2471d6212744bcbf128d659e94801d17</id>
<content type='text'>
The sim_vid, hba_vid, and dev_name fields of struct ccb_pathinq are
fixed-length strings. AFAICT the only place they're read is in
sbin/camcontrol/camcontrol.c, which assumes they'll be null-terminated.
However, the kernel doesn't null-terminate them. A bunch of copy-pasted code
uses strncpy to write them, and doesn't guarantee null-termination. For at
least 4 drivers (mpr, mps, ciss, and hyperv), the hba_vid field actually
overflows. You can see the result by doing "camcontrol negotiate da0 -v".

This change null-terminates those fields everywhere they're set in the
kernel. It also shortens a few strings to ensure they'll fit within the
16-character field.

PR:		215474
Reported by:	Coverity
CID:		1009997 1010000 1010001 1010002 1010003 1010004 1010005
CID:		1331519 1010006 1215097 1010007 1288967 1010008 1306000
CID:		1211924 1010009 1010010 1010011 1010012 1010013 1010014
CID:		1147190 1010017 1010016 1010018 1216435 1010020 1010021
CID:		1010022 1009666 1018185 1010023 1010025 1010026 1010027
CID:		1010028 1010029 1010030 1010031 1010033 1018186 1018187
CID:		1010035 1010036 1010042 1010041 1010040 1010039
Reviewed by:	imp, sephe, slm
MFC after:	4 weeks
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D9037
Differential Revision:	https://reviews.freebsd.org/D9038
</content>
</entry>
<entry>
<title>Don't repeat the the word 'the'</title>
<updated>2016-05-17T12:52:31Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2016-05-17T12:52:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=cef367e6a15b6e3e2aca88d453c74962cf1f94e7'/>
<id>urn:sha1:cef367e6a15b6e3e2aca88d453c74962cf1f94e7</id>
<content type='text'>
(one manual change to fix grammar)

Confirmed With: db
Approved by: secteam (not really, but this is a comment typo fix)
</content>
</entry>
<entry>
<title>dev/pms: minor spelling fixes for the FreeBSD-specific part.</title>
<updated>2016-05-04T17:52:53Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-05-04T17:52:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4a00a65162d5c2f1f67ef9cb62880fc450497ede'/>
<id>urn:sha1:4a00a65162d5c2f1f67ef9cb62880fc450497ede</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sys: use our roundup2/rounddown2() macros when param.h is available.</title>
<updated>2016-04-21T19:57:40Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-04-21T19:57:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d9c9c81c083a76a65c6cacf8fcbc0511e2ffa489'/>
<id>urn:sha1:d9c9c81c083a76a65c6cacf8fcbc0511e2ffa489</id>
<content type='text'>
rounddown2 tends to produce longer lines than the original code
and when the code has a high indentation level it was not really
advantageous to do the replacement.

This tries to strike a balance between readability using the macros
and flexibility of having the expressions, so not everything is
converted.
</content>
</entry>
<entry>
<title>As &lt;machine/pmap.h&gt; is included from &lt;vm/pmap.h&gt;, there is no need to</title>
<updated>2016-02-22T09:02:20Z</updated>
<author>
<name>Svatopluk Kraus</name>
<email>skra@FreeBSD.org</email>
</author>
<published>2016-02-22T09:02:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a1e1814d763ae0dd1c50a85bbd6884969ed26126'/>
<id>urn:sha1:a1e1814d763ae0dd1c50a85bbd6884969ed26126</id>
<content type='text'>
include it explicitly when &lt;vm/pmap.h&gt; is already included.

Reviewed by:	alc, kib
Differential Revision:	https://reviews.freebsd.org/D5373
</content>
</entry>
<entry>
<title>ostiInitiatorIOCompleted(): wrong sizeof() argument.</title>
<updated>2016-02-21T16:45:22Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-02-21T16:45:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=99c006f9ba0b87b721db8c14af56d1729739efc4'/>
<id>urn:sha1:99c006f9ba0b87b721db8c14af56d1729739efc4</id>
<content type='text'>
Detected by:	PVS Static Analysis
CID:		1331601, 1331523
</content>
</entry>
<entry>
<title>Don't forget to check the vendor when probing. Also, there's no need</title>
<updated>2015-08-02T16:26:41Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2015-08-02T16:26:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=123049cf36f4d2bd7bf4027522d700869db51982'/>
<id>urn:sha1:123049cf36f4d2bd7bf4027522d700869db51982</id>
<content type='text'>
to double check for if the card has probed before. In fact, there's no
reason to single check either. Simplify the code as a result.
$FreeBSD$ added to lxutil.c in a non-standard way to help keep the
diffs with upstream to a minimum.

Differential Revision: https://reviews.freebsd.org/D3263
</content>
</entry>
<entry>
<title>Disable debugging.</title>
<updated>2015-07-17T20:29:47Z</updated>
<author>
<name>Benno Rice</name>
<email>benno@FreeBSD.org</email>
</author>
<published>2015-07-17T20:29:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5894064d12fde2fc27e118fedc48ae56eef9a04a'/>
<id>urn:sha1:5894064d12fde2fc27e118fedc48ae56eef9a04a</id>
<content type='text'>
Submitted by:	Vasanthalakshmi Tharmarajan &lt;Vasanthalakshmi.Tharmarajan@pmcs.com&gt;
Reviewed by:	scottl
</content>
</entry>
</feed>
