From: Eric Dumazet <[email protected]> Date: Tue, 23 Aug 2016 13:59:33 -0700
> From: Eric Dumazet <[email protected]> > > 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 <[email protected]> > Signed-off-by: Eric Dumazet <[email protected]> > Tested-by: Laura Abbott <[email protected]> > --- > v2: fix the comment/doc (Willem) Applied and queued up for -stable, thanks.
