tr: fix leakage of device in net/802/tr.c
authorWei Yongjun <yjwei@cn.fujitsu.com>
Wed, 8 Apr 2009 21:27:28 +0000 (21:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Apr 2009 08:43:17 +0000 (01:43 -0700)
commit3384901f1b1af676ccb9d75aa23a568c294c527b
treecf39f8ae5b2be9357e8ad4b639ff5a002676cca6
parentd6c519e12984d26d96b91e4482280acbba0e0a22
tr: fix leakage of device in net/802/tr.c

Add dev_put() after dev_get_by_index() to avoid leakage
of device.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/802/tr.c