summaryrefslogtreecommitdiff
path: root/Kernel/Net/E1000NetworkAdapter.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-28 20:24:44 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-28 20:31:51 +0200
commit463c2e3768bc5b0d9af7a0aa3a4c13bac794f239 (patch)
treecc966585e45895188f878b8718e47231df2c0134 /Kernel/Net/E1000NetworkAdapter.h
parentb3bdab8cf77906a659ac9f8fe236dc0604ed9862 (diff)
downloadserenity-463c2e3768bc5b0d9af7a0aa3a4c13bac794f239.zip
Kernel: Be a little more defensive when indexing E1000 Rx/Tx buffers
Diffstat (limited to 'Kernel/Net/E1000NetworkAdapter.h')
-rw-r--r--Kernel/Net/E1000NetworkAdapter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/E1000NetworkAdapter.h b/Kernel/Net/E1000NetworkAdapter.h
index 934f77e9cf..77b4de7931 100644
--- a/Kernel/Net/E1000NetworkAdapter.h
+++ b/Kernel/Net/E1000NetworkAdapter.h
@@ -104,8 +104,8 @@ private:
bool m_has_eeprom { false };
bool m_use_mmio { false };
- static const int number_of_rx_descriptors = 32;
- static const int number_of_tx_descriptors = 8;
+ static const size_t number_of_rx_descriptors = 32;
+ static const size_t number_of_tx_descriptors = 8;
WaitQueue m_wait_queue;
};