Date: Fri, 26 Sep 2008 18:17:04 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern tty.c Message-ID: <200809261817.m8QIHHNr024339@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2008-09-26 18:17:04 UTC FreeBSD src repository Modified files: sys/kern tty.c Log: SVN rev 183386 on 2008-09-26 18:17:04Z by ed Don't forget to initialize `int error' in ttydev_open(). I've had some reports in the past that opening an already opened TTY through, for example, /dev/tty can fail with random error codes. Looking at ttydev_open(), I can see there is a way `error' is returned without initialising it. Even though I haven't had any confirmation this fixes the bug, I'll fix it anyway. Reported by: Andrzej Tobola <ato iem pw edu pl> Revision Changes Path 1.292 +1 -1 src/sys/kern/tty.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809261817.m8QIHHNr024339>