net: tun: release the reference of tun device in tun_recvmsg
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 24 Apr 2013 21:59:23 +0000 (21:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2013 15:06:37 +0000 (11:06 -0400)
commit3811ae76bc84e5dc1a670ae10695f046b310bee1
tree68e4d8aaa9b4953183141a619be3a3786fdec107
parentb9e48de110ec64bdfd4b83358d0e286551bb110c
net: tun: release the reference of tun device in tun_recvmsg

We forget to release the reference of tun device in tun_recvmsg.
bug introduced in commit 54f968d6efdbf7dec36faa44fc11f01b0e4d1990
(tuntap: move socket to tun_file)

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c