X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=ipc%2Fshm.c;h=748933e376cad6d4dabfc01e6cf2d91b68dd852f;hb=47a7ce62889a52841bcc8cec98dd3bf45af3b4f0;hp=003234fbbd176d8df4ba213b32d779ae492750df;hpb=6bd344e55f73f7ae671bf5c1ebe5bd814f3c4b27;p=linux-2.6-microblaze.git diff --git a/ipc/shm.c b/ipc/shm.c index 003234fbbd17..748933e376ca 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -222,7 +222,7 @@ static void shm_rcu_free(struct rcu_head *head) struct shmid_kernel *shp = container_of(ptr, struct shmid_kernel, shm_perm); security_shm_free(&shp->shm_perm); - kvfree(shp); + kfree(shp); } static inline void shm_rmid(struct ipc_namespace *ns, struct shmid_kernel *s) @@ -619,7 +619,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) ns->shm_tot + numpages > ns->shm_ctlall) return -ENOSPC; - shp = kvmalloc(sizeof(*shp), GFP_KERNEL); + shp = kmalloc(sizeof(*shp), GFP_KERNEL); if (unlikely(!shp)) return -ENOMEM; @@ -630,7 +630,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) shp->shm_perm.security = NULL; error = security_shm_alloc(&shp->shm_perm); if (error) { - kvfree(shp); + kfree(shp); return error; }