From: Amit Khatri <[email protected]>
Signed-off-by: Amit Khatri <[email protected]>
Signed-off-by: Rahul Jain <[email protected]>
---
wowlan.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/wowlan.c b/wowlan.c
index 25f260b..ac2c13d 100644
--- a/wowlan.c
+++ b/wowlan.c
@@ -194,7 +194,8 @@ static int wowlan_parse_tcp_file(struct nl_msg *msg, const
char *fn)
err = -ENOBUFS;
close:
fclose(f);
- nla_nest_end(msg, tcp);
+ if(tcp)
+ nla_nest_end(msg, tcp);
return err;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html