summaryrefslogtreecommitdiffstats
path: root/net/smc
diff options
context:
space:
mode:
authorCong Wang2018-03-27 00:08:33 +0200
committerDavid S. Miller2018-03-27 17:56:00 +0200
commitb85ab56c3f81c5a24b5a5213374f549df06430da (patch)
tree4580d5ab329020259c744ca5b5accae6997258c9 /net/smc
parentMerge tag 'mlx5-fixes-2018-03-23' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadkernel-qcow2-linux-b85ab56c3f81c5a24b5a5213374f549df06430da.tar.gz
kernel-qcow2-linux-b85ab56c3f81c5a24b5a5213374f549df06430da.tar.xz
kernel-qcow2-linux-b85ab56c3f81c5a24b5a5213374f549df06430da.zip
llc: properly handle dev_queue_xmit() return value
llc_conn_send_pdu() pushes the skb into write queue and calls llc_conn_send_pdus() to flush them out. However, the status of dev_queue_xmit() is not returned to caller, in this case, llc_conn_state_process(). llc_conn_state_process() needs hold the skb no matter success or failure, because it still uses it after that, therefore we should hold skb before dev_queue_xmit() when that skb is the one being processed by llc_conn_state_process(). For other callers, they can just pass NULL and ignore the return value as they are. Reported-by: Noam Rathaus <noamr@beyondsecurity.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc')
0 files changed, 0 insertions, 0 deletions