]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: check for a vaild skb in xfrm_policy_queue_process
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 8 Oct 2013 08:49:51 +0000 (10:49 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 8 Oct 2013 08:49:51 +0000 (10:49 +0200)
commit1b8708c3121b932f18c383e9ee8e6271fe51281b
treea62a0dd7f1cbfe4dab7826e0769d9a0a8fde81c3
parentb0589b0c8ba236d544fa0eb629b236b3a7309ac5
xfrm: check for a vaild skb in xfrm_policy_queue_process

We might dreference a NULL pointer if the hold_queue is empty,
so add a check to avoid this.

Bug was introduced with git commit 74a861241 ("xfrm: Add a state
resolution packet queue")

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c