• Arun Kumar Neelakantam's avatar
    msm: bam_dmux: revert the skb state when memory allocation fails · 381cd549
    Arun Kumar Neelakantam authored
    
    
    bam_dmux_write() function modifies the state of a skb via skb_push(), but
    if a later allocation fails, the state of the skb is not reverted to the
    pre skb_push() state.
    
    The error returned to the caller as a result of the allocation failure gets
    propagated to the TCP/IP framework, which re-schedules a retry of the skb
    at a later time.  if enough retries occur due to allocation failures,
    causes the assertion in skb_push() to fail.
    
    If a later allocation fails, revert the skb buffer state to pre skb_push()
    by calling skb_pull().
    
    CRs-Fixed: 441277
    Change-Id: If33e13f00ced164d174ce2c7d9d29762abafa720
    Signed-off-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
    381cd549
bam_dmux.c 66.8 KB