xfrm6: release dev before returning error
authorCong Wang <amwang@redhat.com>
Thu, 9 May 2013 22:40:00 +0000 (22:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 May 2013 00:40:15 +0000 (17:40 -0700)
commit84c4a9dfbf430861e7588d95ae3ff61535dca351
tree1fce44619878ee08fa6ddef23d8fcd4f84e95ba5
parent5dbd5068430b8bd1c19387d46d6c1a88b261257f
xfrm6: release dev before returning error

We forget to call dev_put() on error path in xfrm6_fill_dst(),
its caller doesn't handle this.

Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/xfrm6_policy.c