diff options
| author | pgoyette <pgoyette@NetBSD.org> | 2021-06-05 22:21:15 +0000 |
|---|---|---|
| committer | pgoyette <pgoyette@NetBSD.org> | 2021-06-05 22:21:15 +0000 |
| commit | cb953b8baa7296fbd66bc0ae0d341d2be7aa782a (patch) | |
| tree | ea8e4d134061ec508777c60b5a09d61652c10165 /sys/dev/scsipi | |
| parent | dd897508c656b1f131a8cb7d05d5902b23ef9127 (diff) | |
As with usbverbose and pciverbose, these modules are not safe to be
auto-unloaded. Disable for now.
All of these need to be updated with an appropriate refcount mechanism
to ensure that the code and/or tables aren't unloaded while they are
being used.
Diffstat (limited to 'sys/dev/scsipi')
| -rw-r--r-- | sys/dev/scsipi/scsipi_verbose.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/scsipi/scsipi_verbose.c b/sys/dev/scsipi/scsipi_verbose.c index 594738fc18a..83f99dfeeba 100644 --- a/sys/dev/scsipi/scsipi_verbose.c +++ b/sys/dev/scsipi/scsipi_verbose.c @@ -1,4 +1,4 @@ -/* $NetBSD: scsipi_verbose.c,v 1.34 2018/09/16 23:20:18 mrg Exp $ */ +/* $NetBSD: scsipi_verbose.c,v 1.35 2021/06/05 22:21:15 pgoyette Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: scsipi_verbose.c,v 1.34 2018/09/16 23:20:18 mrg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: scsipi_verbose.c,v 1.35 2021/06/05 22:21:15 pgoyette Exp $"); #include <sys/param.h> #include <sys/time.h> @@ -853,6 +853,8 @@ scsiverbose_modcmd(modcmd_t cmd, void *arg) scsipi_print_sense_data = saved_print_sense_data; scsi_verbose_loaded = 0; return 0; + case MODULE_CMD_AUTOUNLOAD: + return EBUSY; default: return ENOTTY; } |
