diff options
author | Amarinder Bindra | 2013-09-25 05:37:33 -0500 |
---|---|---|
committer | Gerrit Code Review | 2013-09-27 11:20:22 -0500 |
commit | 30cf86853f5cf6bc838f2b56ca441cc348bedb38 (patch) | |
tree | 8ec1f344f63ece4e1b914f67dae21f4256455c5e /configure.ac | |
parent | 9cd39120edafb7a4c755f63d815adc18f5d455f9 (diff) | |
download | hardware-ti-libdce-30cf86853f5cf6bc838f2b56ca441cc348bedb38.tar.gz hardware-ti-libdce-30cf86853f5cf6bc838f2b56ca441cc348bedb38.tar.xz hardware-ti-libdce-30cf86853f5cf6bc838f2b56ca441cc348bedb38.zip |
Add check for ownership for file descriptor
Currently, the dce_deinit function deletes the file descriptor(fd) that
it uses for allocation of the buffers even if it has not created it.
This adds a check where it only deletes the fd only when the ownership
of fd is with libdce else it only deletes th device which it uses.
Also, add a check where the dce_set_fd sets the fd only if the drm
device fd is not already set to avoid memory leak.
Change-Id: Ie5e23f06a5d171f2c06f4bebb64b040915e71153
Signed-off-by: Amarinder Bindra <a-bindra@ti.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions