aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/rtl8139.c
diff options
context:
space:
mode:
authorMarvin Borner2020-11-14 22:27:59 +0100
committerMarvin Borner2020-11-14 22:27:59 +0100
commit0621c44e439bedf034399e1bff139ef506039eba (patch)
tree68e69323391e5c4725fa6ef2d16e17e6664011b4 /kernel/drivers/rtl8139.c
parent1af60d64fb97cfadab39b9d3e86248473cac0693 (diff)
Some fixes
I WAS BUG-SEARCHING FOR SEVERAL HOURS WHYYYY, WHEEERE, AAAAAH
Diffstat (limited to 'kernel/drivers/rtl8139.c')
-rw-r--r--kernel/drivers/rtl8139.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/rtl8139.c b/kernel/drivers/rtl8139.c
index b870825..fb60865 100644
--- a/kernel/drivers/rtl8139.c
+++ b/kernel/drivers/rtl8139.c
@@ -12,9 +12,9 @@
#include <rtl8139.h>
static int rtl_irq = 0;
-static u8 mac[6];
+static u8 mac[6] = { 0 };
static u8 *last_packet = NULL;
-static u8 *rtl_rx_buffer;
+static u8 *rtl_rx_buffer = NULL;
static u32 rtl_device_pci = 0;
static u32 rtl_iobase = 0;
static u32 cur_rx = 0;