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)
commit2bb53e2557964c2c5368a0392cf3b3b63a288cd0
treea62a0dd7f1cbfe4dab7826e0769d9a0a8fde81c3
parente7d8f6cb2f8735693396872f4608bbe305e8baee
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 a0073fe18 ("xfrm: Add a state
resolution packet queue")

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