summaryrefslogtreecommitdiffstats
path: root/net/irda/irnetlink.c
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2007-08-22 06:23:39 +0200
committerDavid S. Miller <davem@davemloft.net>2007-08-22 06:23:39 +0200
commit22117ea4fef4ea1c7d97c4d68c02c96c268a511b (patch)
treeb25aa62a488fc8751a9161d994726dfe28d9b7f6 /net/irda/irnetlink.c
parent[PPP]: Fix output buffer size in ppp_decompress_frame(). (diff)
downloadlinux-22117ea4fef4ea1c7d97c4d68c02c96c268a511b.tar.xz
linux-22117ea4fef4ea1c7d97c4d68c02c96c268a511b.zip
[IRDA] irda_nl_get_mode: always results in failure
It seems an extraneous trailing ';' has slipped in to the error handling for a name registration failure causing the error path to trigger unconditionally. Signed-off-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Samuel Ortiz <samuel@sortiz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda/irnetlink.c')
-rw-r--r--net/irda/irnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/irda/irnetlink.c b/net/irda/irnetlink.c
index 694ea4d92fa8..1e429c929739 100644
--- a/net/irda/irnetlink.c
+++ b/net/irda/irnetlink.c
@@ -106,7 +106,7 @@ static int irda_nl_get_mode(struct sk_buff *skb, struct genl_info *info)
}
if(nla_put_string(msg, IRDA_NL_ATTR_IFNAME,
- dev->name));
+ dev->name))
goto err_out;
if(nla_put_u32(msg, IRDA_NL_ATTR_MODE, irlap->mode))