lkml.org 
[lkml]   [2013]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v3 2/3] unix/dgram: fix peeking with an offset larger than data in queue
    From
    From: Benjamin Poirier <bpoirier@suse.de>
    Date: Mon, 29 Apr 2013 17:42:13 -0400

    > Currently, peeking on a unix datagram socket with an offset larger than len of
    > the data in the sk receive queue returns immediately with bogus data. That's
    > because *off is not reset between each skb_queue_walk().
    >
    > This patch fixes this so that the behavior is the same as peeking with no
    > offset on an empty queue: the caller blocks.
    >
    > Signed-off-by: Benjamin Poirier <bpoirier@suse.de>

    Applied.


    \
     
     \ /
      Last update: 2013-04-30 07:21    [W:3.810 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site