1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

Kernel: Be a little more defensive when indexing E1000 Rx/Tx buffers

This commit is contained in:
Andreas Kling 2020-04-28 20:24:44 +02:00
parent b3bdab8cf7
commit 463c2e3768
2 changed files with 8 additions and 7 deletions

View file

@ -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;
};