lkml.org 
[lkml]   [2020]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2] net: qrtr: fix len of skb_put_padto in qrtr_node_enqueue
From
From: Wen Gong <wgong@codeaurora.org>
Date: Fri, 3 Jan 2020 12:50:16 +0800

> The len used for skb_put_padto is wrong, it need to add len of hdr.

Thanks, applied.

There is another bug here, skb_put_padto() returns an error and frees
the SKB when the put fails. There really needs to be a check here,
because currently the code right now will keep using the freed up
skb in that situation.

Thanks.

\
 
 \ /
  Last update: 2020-01-05 23:48    [W:0.051 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site