Date: Tue, 8 Sep 2020 16:07:47 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365464 - head/sys/kern Message-ID: <202009081607.088G7lhb087804@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Tue Sep 8 16:07:47 2020 New Revision: 365464 URL: https://svnweb.freebsd.org/changeset/base/365464 Log: fd: fix fhold on an uninitialized var in fdcopy_remapped Reported by: gcc9 Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c ============================================================================== --- head/sys/kern/kern_descrip.c Tue Sep 8 16:06:46 2020 (r365463) +++ head/sys/kern/kern_descrip.c Tue Sep 8 16:07:47 2020 (r365464) @@ -2213,7 +2213,7 @@ fdcopy_remapped(struct filedesc *fdp, const int *fds, error = EINVAL; goto bad; } - if (!fhold(nfde->fde_file)) { + if (!fhold(ofde->fde_file)) { error = EBADF; goto bad; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009081607.088G7lhb087804>