1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

drivers/encx24j600: Allow empty iolist elements

This commits allows using netdev_driver_t::send() to be called with one or more
empty iolist elements. This fixes issue
https://github.com/RIOT-OS/RIOT/issues/11163
This commit is contained in:
Marian Buschsieweke 2019-04-01 16:20:21 +02:00
parent 85276fb7a0
commit 99db8e8717
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -205,6 +205,10 @@ static void sram_op(encx24j600_t *dev, uint16_t cmd, uint16_t addr, char *ptr, i
char* in = NULL;
char* out = NULL;
if (!len) {
return;
}
/* determine pointer addr
*
* all SRAM access commands have an