From dc07ed56e14905ab66be6a2b7273756605b9f7b7 Mon Sep 17 00:00:00 2001 From: oster Date: Tue, 29 Jan 2019 23:42:06 +0000 Subject: Need to return EPASSTHROUGH for ioctls that arn't handled in compat. Thanks to mlelstv for finding this! --- sys/dev/raidframe/rf_compat80.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/raidframe') diff --git a/sys/dev/raidframe/rf_compat80.c b/sys/dev/raidframe/rf_compat80.c index 2692557530e..196af7dce6c 100644 --- a/sys/dev/raidframe/rf_compat80.c +++ b/sys/dev/raidframe/rf_compat80.c @@ -1,4 +1,4 @@ -/* $NetBSD: rf_compat80.c,v 1.4 2019/01/29 09:28:50 pgoyette Exp $ */ +/* $NetBSD: rf_compat80.c,v 1.5 2019/01/29 23:42:06 oster Exp $ */ /* * Copyright (c) 2017 Matthew R. Green @@ -242,7 +242,7 @@ int error; case RAIDFRAME_FAIL_DISK80: return EPASSTHROUGH; default: - return EINVAL; + return EPASSTHROUGH; } switch (cmd) { -- cgit