* [PATCH 2.6 7/7]: Missing rtnl_unlock in register_vlan_device error path
@ 2004-10-03 21:13 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2004-10-03 21:13 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev
[-- Attachment #1: Type: text/plain, Size: 67 bytes --]
rtnl_unlock is not called in the out_free_unregister error path.
[-- Attachment #2: 07.diff --]
[-- Type: text/x-patch, Size: 754 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/10/03 20:44:53+02:00 kaber@coreworks.de
# [VLAN]: Missing rtnl_unlock in register_vlan_device error path
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/8021q/vlan.c
# 2004/10/03 20:44:27+02:00 kaber@coreworks.de +1 -1
# [VLAN]: Missing rtnl_unlock in register_vlan_device error path
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/net/8021q/vlan.c b/net/8021q/vlan.c
--- a/net/8021q/vlan.c 2004-10-03 22:21:30 +02:00
+++ b/net/8021q/vlan.c 2004-10-03 22:21:30 +02:00
@@ -537,7 +537,7 @@
out_free_unregister:
unregister_netdev(new_dev);
- goto out_put_dev;
+ goto out_unlock;
out_free_newdev:
free_netdev(new_dev);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-03 21:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-03 21:13 [PATCH 2.6 7/7]: Missing rtnl_unlock in register_vlan_device error path Patrick McHardy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).