]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
infiniband: nes: Fix more direct skb list accesses.
authorDavid S. Miller <davem@davemloft.net>
Sat, 10 Nov 2018 05:18:48 +0000 (21:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Nov 2018 05:19:44 +0000 (21:19 -0800)
commit12ceaf8864c269467846379ebea56a2b996f9e3b
tree39e5efd2c11583803652ce98424d976a99adec05
parent457937bd2e8e70d3a37eee3eaa45d86d169a6762
infiniband: nes: Fix more direct skb list accesses.

The following:

skb = skb->next;
...
if (skb == (struct sk_buff *)queue)

is transformed into:

skb = skb_peek_next(skb, queue);
...
if (!skb)

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/nes/nes_mgt.c