diff --git a/system76_nv_hda.c b/system76_nv_hda.c index 73a8c9f..7c2de34 100644 --- a/system76_nv_hda.c +++ b/system76_nv_hda.c @@ -162,6 +162,9 @@ static int __init nv_hda_init(struct device *dev) { } static void __exit nv_hda_exit(void) { + if (dis_dev == NULL) + return; + dis_dev_get(); nv_hda_off();