summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux/linux_ioctl.c')
-rw-r--r--sys/compat/linux/linux_ioctl.c3
1 files changed, 2 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud