From: Amit Khatri <amit.khatri@xxxxxxxxxxx> Signed-off-by: Amit Khatri <amit.khatri@xxxxxxxxxxx> Signed-off-by: Rahul Jain <rahul.jain@xxxxxxxxxxx> --- 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html