https://bugs.kde.org/show_bug.cgi?id=376956

--- Comment #5 from Daniel Glöckner <daniel...@gmx.net> ---
Created attachment 104511
  --> https://bugs.kde.org/attachment.cgi?id=104511&action=edit
First half of the fix

Part of the problem is that SNDRV_PCM_IOCTL_PREPARE was not handled correctly.
There is a "break" missing in the post-syscall function. I have attached a
patch.

The other half of the problem is that DRM_IOCTL_VERSION will not write more
than name_len/date_len/desc_len bytes into name/date/desc but always sets
name_len/date_len/desc_len to the number of bytes that would have been needed.
Libdrm first tests how much is needed by setting all fields to 0/NULL before it
calls the ioctl a second time with allocated buffers.

Is there any way to pass the input values of name_len/date_len/desc_len from
PRE(sys_ioctl) to POST(sys_ioctl)?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to