]> 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)
commite1c987cab54591e6236f5f4209240dc31c6d2643
treea62a0dd7f1cbfe4dab7826e0769d9a0a8fde81c3
parentd503fb115c512bf054c86fb763a99e46f4fe0c9f
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 2e30dbbfe ("xfrm: Add a state
resolution packet queue")

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