netmap: compare e1 with e2, not with itself

This commit is contained in:
mmacy 2018-05-19 05:37:18 +00:00
parent 0db6398617
commit 23ede0cc2e

View File

@ -651,7 +651,7 @@ nm_os_extmem_nextpage(struct nm_os_extmem *e)
int
nm_os_extmem_isequal(struct nm_os_extmem *e1, struct nm_os_extmem *e2)
{
return (e1->obj == e1->obj);
return (e1->obj == e2->obj);
}
int