diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-28 20:24:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-28 20:31:51 +0200 |
commit | 463c2e3768bc5b0d9af7a0aa3a4c13bac794f239 (patch) | |
tree | cc966585e45895188f878b8718e47231df2c0134 /Kernel/Net/E1000NetworkAdapter.h | |
parent | b3bdab8cf77906a659ac9f8fe236dc0604ed9862 (diff) | |
download | serenity-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.h | 4 |
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; }; |