Skip to content
Snippets Groups Projects
Commit f2cbea88 authored by Florian Pose's avatar Florian Pose
Browse files

Fixed receiving multiple frames in generic device.

parent 899fdc0f
No related branches found
No related tags found
No related merge requests found
...@@ -314,11 +314,11 @@ void ec_gen_device_poll( ...@@ -314,11 +314,11 @@ void ec_gen_device_poll(
struct kvec iov; struct kvec iov;
int ret, budget = 10; // FIXME int ret, budget = 10; // FIXME
iov.iov_base = dev->rx_buf;
iov.iov_len = EC_GEN_RX_BUF_SIZE;
memset(&msg, 0, sizeof(msg));
do { do {
iov.iov_base = dev->rx_buf;
iov.iov_len = EC_GEN_RX_BUF_SIZE;
memset(&msg, 0, sizeof(msg));
ret = kernel_recvmsg(dev->socket, &msg, &iov, 1, iov.iov_len, ret = kernel_recvmsg(dev->socket, &msg, &iov, 1, iov.iov_len,
MSG_DONTWAIT); MSG_DONTWAIT);
if (ret > 0) { if (ret > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment