• Karsten Keil's avatar
    ISDN: fix OOM condition for sending queued I-Frames · c7a7c95e
    Karsten Keil authored
    The skb_clone() return value was not checked and the skb_realloc_headroom()
    usage was wrong, the old skb was not freed. It turned out, that the
    skb_clone is not needed at all, the skb_realloc_headroom() will create a
    private copy with enough headroom and the original SKB can be used for the
    ACK queue.
    We need to requeue the original skb if the call failed, since the upper
    layer cannot be informed about memory shortage.
    
    Thanks to Insu Yun <wuninsu@gmail.com> to remind me on this issue.
    Signed-off-by: default avatarKarsten Keil <keil@b1-systems.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    c7a7c95e
isdnl2.c 41.7 KB