linuxdvb: appears some tuners are not supporting FE_GET_EVENT

This results in a terminal lockup as the ioctl() will loop indefinitely,
testing for != -1 was always a bad idea!
This commit is contained in:
Adam Sutton 2015-01-22 15:12:25 +00:00
parent f88f2f33ff
commit dcdef424fc

View file

@ -1328,7 +1328,7 @@ linuxdvb_frontend_tune0
/* discard stale events */
while (1) {
if (ioctl(lfe->lfe_fe_fd, FE_GET_EVENT, &ev) == -1)
if (ioctl(lfe->lfe_fe_fd, FE_GET_EVENT, &ev) < 0)
break;
}