Date: Fri, 25 Mar 2011 10:57:57 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/compat/freebsd32 freebsd32_ioctl.c Message-ID: <201103251058.p2PAwGx5081986@repoman.freebsd.org>
index | next in thread | raw e-mail
kib 2011-03-25 10:57:57 UTC
FreeBSD src repository
Modified files:
sys/compat/freebsd32 freebsd32_ioctl.c
Log:
SVN rev 219986 on 2011-03-25 10:57:57Z by kib
Fix file leakage in the freebsd32_ioctl routines.
Code inspection shows freebsd32_ioctl calls fget for a fd and calls
a subroutine to handle each specific ioctl. It is expected that the
subroutine will call fdrop when done. However many of the subroutines
will exit out early if copyin encounters an error resulting in fdrop
never being called.
Submitted by: John Wehle <john feith com>
MFC after: 3 days
Revision Changes Path
1.4 +11 -9 src/sys/compat/freebsd32/freebsd32_ioctl.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103251058.p2PAwGx5081986>
