From 139cdbc604834880f98cacebce87a2015962b020 Mon Sep 17 00:00:00 2001 From: alfred Date: Wed, 20 Feb 2002 17:06:37 +0000 Subject: fix file descriptor leak. Submitted by: Mark Santcroos --- sys/compat/linux/linux_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_ioctl.c') diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index ec96415..264ee59 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -2313,9 +2313,10 @@ linux_ioctl(struct thread *td, struct linux_ioctl_args *args) TAILQ_FOREACH(he, &handlers, list) { if (cmd >= he->low && cmd <= he->high) { error = (*he->func)(td, args); - if (error != ENOIOCTL) + if (error != ENOIOCTL) { fdrop(fp, td); return (error); + } } } fdrop(fp, td); -- cgit v1.1