Searched refs:newmem (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/drivers/vhost/ |
H A D | vhost.c | 693 struct vhost_memory mem, *newmem, *oldmem; vhost_set_memory() local 703 newmem = vhost_kvzalloc(size + mem.nregions * sizeof(*m->regions)); vhost_set_memory() 704 if (!newmem) vhost_set_memory() 707 memcpy(newmem, &mem, size); vhost_set_memory() 708 if (copy_from_user(newmem->regions, m->regions, vhost_set_memory() 710 kvfree(newmem); vhost_set_memory() 713 sort(newmem->regions, newmem->nregions, sizeof(*newmem->regions), vhost_set_memory() 716 if (!memory_access_ok(d, newmem, 0)) { vhost_set_memory() 717 kvfree(newmem); vhost_set_memory() 721 d->memory = newmem; vhost_set_memory() 726 d->vqs[i]->memory = newmem; vhost_set_memory()
|
/linux-4.4.14/drivers/media/dvb-core/ |
H A D | dmxdev.c | 258 void *newmem; dvb_dvr_set_buffer_size() local 268 newmem = vmalloc(size); dvb_dvr_set_buffer_size() 269 if (!newmem) dvb_dvr_set_buffer_size() 275 buf->data = newmem; dvb_dvr_set_buffer_size() 299 void *newmem; dvb_dmxdev_set_buffer_size() local 309 newmem = vmalloc(size); dvb_dmxdev_set_buffer_size() 310 if (!newmem) dvb_dmxdev_set_buffer_size() 316 buf->data = newmem; dvb_dmxdev_set_buffer_size()
|
Completed in 99 milliseconds