Changeset 66509 in vbox
- Timestamp:
- Apr 11, 2017 11:19:10 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r65992 r66509 243 243 { 244 244 unsigned i; 245 246 vbox->vbva_info = kcalloc(vbox->num_crtcs, sizeof(*vbox->vbva_info), 247 GFP_KERNEL); 245 248 if (!vbox->vbva_info) 246 { 247 vbox->vbva_info = kzalloc( sizeof(struct VBVABUFFERCONTEXT) 248 * vbox->num_crtcs, 249 GFP_KERNEL); 250 if (!vbox->vbva_info) 251 return -ENOMEM; 252 } 249 return -ENOMEM; 250 253 251 /* Take a command buffer for each screen from the end of usable VRAM. */ 254 252 vbox->available_vram_size -= vbox->num_crtcs * VBVA_MIN_BUFFER_SIZE;
Note:
See TracChangeset
for help on using the changeset viewer.