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/net/ethernet/sun/ldmvsw.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/net/ethernet/sun/ldmvsw.c b/kernel/drivers/net/ethernet/sun/ldmvsw.c
index 01ea0d6..934a4b5 100644
--- a/kernel/drivers/net/ethernet/sun/ldmvsw.c
+++ b/kernel/drivers/net/ethernet/sun/ldmvsw.c
@@ -290,6 +290,9 @@
hp = mdesc_grab();
+ if (!hp)
+ return -ENODEV;
+
rmac = mdesc_get_property(hp, vdev->mp, remote_macaddr_prop, &len);
err = -ENODEV;
if (!rmac) {
--
Gitblit v1.6.2