X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=ipc%2Fshm.c;h=7d3bb22a93022e4911028bffd6710f1426e7b0e8;hb=55065bc52795faae549abfb912aacc622dd63876;hp=fd658a1c2b88d43f565baaeb3666cc583caaef28;hpb=302f5bc54448bd2b37d5a8be9b6abc29397827ef;p=mv-sheeva.git diff --git a/ipc/shm.c b/ipc/shm.c index fd658a1c2b8..7d3bb22a930 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -479,6 +479,7 @@ static inline unsigned long copy_shmid_to_user(void __user *buf, struct shmid64_ { struct shmid_ds out; + memset(&out, 0, sizeof(out)); ipc64_perm_to_ipc_perm(&in->shm_perm, &out.shm_perm); out.shm_segsz = in->shm_segsz; out.shm_atime = in->shm_atime;