Fixed receiving multiple frames in generic device.

This commit is contained in:
Florian Pose 2009-11-09 10:29:29 +01:00
parent d820b85f94
commit 0e024d57d7
1 changed files with 4 additions and 4 deletions

View File

@ -314,11 +314,11 @@ void ec_gen_device_poll(
struct kvec iov;
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 {
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,
MSG_DONTWAIT);
if (ret > 0) {