changeset 1580 | 1baac79a40cf |
parent 1521 | 2180c608e250 |
child 1554 | e07a0f8de03d |
--- a/master/device.c Thu Nov 19 14:39:10 2009 +0100 +++ b/master/device.c Thu Nov 19 14:44:57 2009 +0100 @@ -506,6 +506,12 @@ { const void *ec_data = data + ETH_HLEN; size_t ec_size = size - ETH_HLEN; + + if (unlikely(!data)) { + EC_WARN("%s() called with NULL data.\n", __func__); + return; + } + device->rx_count++; if (unlikely(device->master->debug_level > 1)) {