]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r317755, r317758
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 30 May 2017 22:45:01 +0000 (22:45 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 30 May 2017 22:45:01 +0000 (22:45 +0000)
commitfb0a3fbfeb6f8d931b7517d1f724b3ff7fff33ab
treefee13f2069a39986b32b4c62a68d3621b951584b
parentea1f79bbf7e3e7dfd81efaddb6771ddb731ff301
MFC r317755, r317758

r317755:
Various Coverity fixes in ifconfig(8)

* Exit early if kldload(2) fails (1011259). This is the only change that
  affects ifconfig's behavior.
* Close memory and resource leaks (130562413052051007100)
* Mark usage() as _Noreturn (13058061305750)
* Fix some dereference after null checks (1011474, 270774)

Reported by: Coverity
CID: 130562413052051007100130580613057501011474,
CID: 270774, 1011259
Reviewed by: cem
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D10587

r317758:
Unbreak ifconfig for mlx4en(4) after r317755

ifconfig doesn't correctly infer mlx interfaces' module names, so it will
attempt to load the mlx(4) module even when not necessary.

Reported by: rstone
X-MFC-With: 317755
Sponsored by: Spectra Logic Corp

git-svn-id: svn://svn.freebsd.org/base/stable/10@319265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ifconfig/af_inet6.c
sbin/ifconfig/ifclone.c
sbin/ifconfig/ifconfig.c
sbin/ifconfig/iflagg.c
sbin/ifconfig/ifpfsync.c