<div dir="ltr"><div><div><div><div><div><div>Hi, <br></div><br></div><div></div>Can I do something to have it merged to the source tree?<br></div><br></div>Fix was already tested, works fine :)<br><br></div>regards<br></div>Łukasz Spintzyk<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-05 18:48 GMT+02:00 Lukasz Spintzyk <span dir="ltr"><<a href="mailto:lukasz.spintzyk@gmail.com" target="_blank">lukasz.spintzyk@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This closes filedescriptor owned by kms_dri_sw_winsys struct. It fixes issue<br>
where removal of udl or evdi module used by DisplayLink devices was impossible<br>
due to not closed filedescriptors.<br>
<br>
When this file descriptor was not closed then command<br>
rmmod udl was returning error "Module udl is in use".<br>
By this fix xserver does not prevent module removal when usb device<br>
is unplugged.<br>
<br>
Signed-off-by: Lukasz Spintzyk <<a href="mailto:lukasz.spintzyk@gmail.com">lukasz.spintzyk@gmail.com</a>><br>
---<br>
<span class=""> src/gallium/winsys/sw/kms-dri/<wbr>kms_dri_sw_winsys.c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
</span>diff --git a/src/gallium/winsys/sw/kms-<wbr>dri/kms_dri_sw_winsys.c b/src/gallium/winsys/sw/kms-<wbr>dri/kms_dri_sw_winsys.c<br>
index 07eca99..f06ccef 100644<br>
--- a/src/gallium/winsys/sw/kms-<wbr>dri/kms_dri_sw_winsys.c<br>
+++ b/src/gallium/winsys/sw/kms-<wbr>dri/kms_dri_sw_winsys.c<br>
@@ -371,6 +371,9 @@ kms_sw_displaytarget_display(<wbr>struct sw_winsys *ws,<br>
static void<br>
kms_destroy_sw_winsys(struct sw_winsys *winsys)<br>
{<br>
+ struct kms_sw_winsys *kms_sw = kms_sw_winsys(winsys);<br>
+<br>
+ close(kms_sw->fd);<br>
FREE(winsys);<br>
}<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.7.4<br>
<br>
</font></span></blockquote></div><br></div>