From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/tty/serial/sunsab.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/kernel/drivers/tty/serial/sunsab.c b/kernel/drivers/tty/serial/sunsab.c
index bab551f..451c723 100644
--- a/kernel/drivers/tty/serial/sunsab.c
+++ b/kernel/drivers/tty/serial/sunsab.c
@@ -1137,7 +1137,13 @@
}
}
- return platform_driver_register(&sab_driver);
+ err = platform_driver_register(&sab_driver);
+ if (err) {
+ kfree(sunsab_ports);
+ sunsab_ports = NULL;
+ }
+
+ return err;
}
static void __exit sunsab_exit(void)
--
Gitblit v1.6.2