xfrm: fix a read lock imbalance in make_blackhole
authorLi RongQing <roy.qing.li@gmail.com>
Mon, 17 Sep 2012 22:40:10 +0000 (22:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Sep 2012 20:30:15 +0000 (16:30 -0400)
commit433a19548061bb5457b6ab77ed7ea58ca6e43ddb
tree97d4a0f66372f2c24b00dcc970f033d6dfd08f6c
parent1d57f19539c074105791da6384a8ad674bba8037
xfrm: fix a read lock imbalance in make_blackhole

if xfrm_policy_get_afinfo returns 0, it has already released the read
lock, xfrm_policy_put_afinfo should not be called again.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_policy.c