X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=net%2Fsocket.c;h=a5471f804d994ece8c31df6be0e04d5076b6dfd0;hb=f4fe968b61f530811d353c198f94bbeddefb26ee;hp=dfe5b66c97e0bc836efed43ad080dec620301306;hpb=6df419e45d71b8d9a0de8e92a1212bbea460f0e0;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git diff --git a/net/socket.c b/net/socket.c index dfe5b66..a5471f8 100644 --- a/net/socket.c +++ b/net/socket.c @@ -2657,6 +2657,7 @@ static int dev_ifconf(struct net *net, struct compat_ifconf __user *uifc32) if (copy_from_user(&ifc32, uifc32, sizeof(struct compat_ifconf))) return -EFAULT; + memset(&ifc, 0, sizeof(ifc)); if (ifc32.ifcbuf == 0) { ifc32.ifc_len = 0; ifc.ifc_len = 0;