From: Eric Dumazet <eric.duma...@gmail.com> Date: Tue, 23 Aug 2016 13:59:33 -0700
> From: Eric Dumazet <eduma...@google.com> > > Laura tracked poll() [and friends] regression caused by commit > e6afc8ace6dd ("udp: remove headers from UDP packets before queueing") > > udp_poll() needs to know if there is a valid packet in receive queue, > even if its payload length is 0. > > Change first_packet_length() to return an signed int, and use -1 > as the indication of an empty queue. > > Fixes: e6afc8ace6dd ("udp: remove headers from UDP packets before queueing") > Reported-by: Laura Abbott <labb...@redhat.com> > Signed-off-by: Eric Dumazet <eduma...@google.com> > Tested-by: Laura Abbott <labb...@redhat.com> > --- > v2: fix the comment/doc (Willem) Applied and queued up for -stable, thanks.