]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r289450:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 26 Oct 2015 00:08:40 +0000 (00:08 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 26 Oct 2015 00:08:40 +0000 (00:08 +0000)
commit16aeeb6a16d4bac74d3f97bf8cfde9ae20480a21
tree4d4749321f0c130bc4021ac49367179d7f8e35b6
parent2064747ca38b969ef12afd7b88623249c89d18bb
MFC r289450:

Set dev->fd to -1 when calling cam_close_spec_device with a valid dev->fd
descriptor to avoid trashing valid file descriptors that access dev->fd at a
later point in time

PR: 192671
Submitted by: Scott Ferris <scott.ferris@isilon.com>
Sponsored by: EMC / Isilon Storage Division

git-svn-id: svn://svn.freebsd.org/base/stable/10@289972 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libcam/camlib.c