When trying to do a Display_create call after a Display_delete the video driver
will not allow access during the REQBUFS ioctl. This is the result of the
drivers release function not being called to reset the flag allowing I/O to the
device. This issue could be reproduced by doing:
The user would see the second Display_create call fail.
This issue was caused by not properly munmapping the driver buffers in the
Display_delete function which caused the close routine to not call the driver's
release function. The call to munmap was using the size of the buffer used by
the application, not the size of the buffer that was mmap'ed. This has been
fixed to munmap the size of the buffer that was mmap'ed.
The order of the munmap and file descriptor close has also been reversed for
This issue was found in DMAI 1.20.00.05
Please consider the attached patch for inclusion.