aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ipv6_sockglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r--net/ipv6/ipv6_sockglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
index eb330a44bacd..532425db11fe 100644
--- a/net/ipv6/ipv6_sockglue.c
+++ b/net/ipv6/ipv6_sockglue.c
@@ -663,7 +663,7 @@ done:
663 break; 663 break;
664 } 664 }
665 gsf = kmalloc(optlen,GFP_KERNEL); 665 gsf = kmalloc(optlen,GFP_KERNEL);
666 if (gsf == 0) { 666 if (!gsf) {
667 retv = -ENOBUFS; 667 retv = -ENOBUFS;
668 break; 668 break;
669 } 669 }