Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 173540 Details for
Bug 228473
x11-drivers/xf86-video-openchrome XvMC allocation fixes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
xf86-video-openchrome fix
ioctlfix.patch (text/plain), 1.12 KB, created by
Daniel Drake (RETIRED)
on 2008-11-26 23:27:54 UTC
(
hide
)
Description:
xf86-video-openchrome fix
Filename:
MIME Type:
Creator:
Daniel Drake (RETIRED)
Created:
2008-11-26 23:27:54 UTC
Size:
1.12 KB
patch
obsolete
> >From: Daniel Drake <dsd@gentoo.org> > >Copy full size of data structure into ioctl > >Index: xf86-video-openchrome-0.2.903/libxvmc/viaLowLevelPro.c >=================================================================== >--- xf86-video-openchrome-0.2.903.orig/libxvmc/viaLowLevelPro.c >+++ xf86-video-openchrome-0.2.903/libxvmc/viaLowLevelPro.c >@@ -1460,13 +1460,13 @@ updateLowLevelBuf(XvMCLowLevel * xl, Low > > if (size != mem->size) { > if (mem->size) >- drmCommandWrite(xl->fd, DRM_VIA_FREEMEM, mem, sizeof(mem)); >+ drmCommandWrite(xl->fd, DRM_VIA_FREEMEM, mem, sizeof(*mem)); > mem->context = *(xl->drmcontext); > mem->size = size; > mem->type = VIA_MEM_VIDEO; > > if (((ret = drmCommandWriteRead(xl->fd, DRM_VIA_ALLOCMEM, mem, >- sizeof(mem))) < 0) || mem->size != size) { >+ sizeof(*mem))) < 0) || mem->size != size) { > mem->size = 0; > return -1; > } >@@ -1484,7 +1484,7 @@ cleanupLowLevelBuf(XvMCLowLevel * xl, Lo > drm_via_mem_t *mem = &buf->mem; > > if (mem->size) >- drmCommandWrite(xl->fd, DRM_VIA_FREEMEM, mem, sizeof(mem)); >+ drmCommandWrite(xl->fd, DRM_VIA_FREEMEM, mem, sizeof(*mem)); > mem->size = 0; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228473
:
173349
|
173392
|
173424
| 173540