]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ipoib: drop skb on path record lookup failure
authorEvgenii Smirnov <evgenii.smirnov@profitbricks.com>
Tue, 22 May 2018 14:00:47 +0000 (16:00 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 22 May 2018 19:52:15 +0000 (15:52 -0400)
commit7fab1c4c4999eab61f9c19468cdac2c5373a1d82
treeaf4a0b6dab66fbd0e358ccb78faf85f785bcb407
parentf84599f7a1a7d7377de5bfe212027dcf43fd3efe
RDMA/ipoib: drop skb on path record lookup failure

In unicast_arp_send function there is an inconsistency in error handling
of path_rec_start call. If path_rec_start is called because of an absent
ah field, skb will be dropped. But if it is called on a creation of a
new path, or if the path is invalid, skb will be added to the tail of
path queue.  In case of a new path it will be dropped on path_free, but
in case of invalid path it can stay in the queue forever.

This patch unifies the behavior, dropping skb in all cases
of path_rec_start failure.

Signed-off-by: Evgenii Smirnov <evgenii.smirnov@profitbricks.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c