Searched refs:newmem (Results 1 – 2 of 2) sorted by relevance
595 struct vhost_memory mem, *newmem, *oldmem; in vhost_set_memory() local605 newmem = kmalloc(size + mem.nregions * sizeof *m->regions, GFP_KERNEL); in vhost_set_memory()606 if (!newmem) in vhost_set_memory()609 memcpy(newmem, &mem, size); in vhost_set_memory()610 if (copy_from_user(newmem->regions, m->regions, in vhost_set_memory()612 kfree(newmem); in vhost_set_memory()616 if (!memory_access_ok(d, newmem, 0)) { in vhost_set_memory()617 kfree(newmem); in vhost_set_memory()621 d->memory = newmem; in vhost_set_memory()626 d->vqs[i]->memory = newmem; in vhost_set_memory()
258 void *newmem; in dvb_dvr_set_buffer_size() local268 newmem = vmalloc(size); in dvb_dvr_set_buffer_size()269 if (!newmem) in dvb_dvr_set_buffer_size()275 buf->data = newmem; in dvb_dvr_set_buffer_size()299 void *newmem; in dvb_dmxdev_set_buffer_size() local309 newmem = vmalloc(size); in dvb_dmxdev_set_buffer_size()310 if (!newmem) in dvb_dmxdev_set_buffer_size()316 buf->data = newmem; in dvb_dmxdev_set_buffer_size()