[PATCH] ipv6:ip6_xmit remove unnecessary np NULL check

2016-11-28 Thread Manjeet Pawar
From: Rohit Thapliyal np NULL check doesn't seem required here as it shall never be NULL anyways in inet6_sk(sk). Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar Signed-off-by: David Miller Reviewed-by: Akhilesh Kumar --- v2->v3: Modified as per the suggestion from Davi

[PATCH v2] ipv6:ipv6_pinfo dereferenced after NULL check

2016-11-24 Thread Manjeet Pawar
From: Rohit Thapliyal np checked for NULL and then dereferenced. It should be modified for NULL case. Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar Signed-off-by: Hannes Frederic Sowa Reviewed-by: Akhilesh Kumar --- v1->v2: Modified as per the suggestion of Hannes

[PATCH] ipv6:ipv6_pinfo dereferenced after NULL check

2016-11-21 Thread Manjeet Pawar
From: Rohit Thapliyal np checked for NULL and then dereferenced. It should be modified for NULL case. Signed-off-by: Rohit Thapliyal Signed-off-by: Manjeet Pawar --- net/ipv6/ip6_output.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/ipv6/ip6_output.c b/net