diff options
author | Prabhanjan Kandula | 2017-10-20 16:15:57 -0500 |
---|---|---|
committer | Naseer Ahmed | 2018-01-25 13:58:16 -0600 |
commit | 2f9aea0661550a43c3d2ac33a5bc286870edd34e (patch) | |
tree | 623e93615f5d2adf0626fb4cd6701137e54d5b6e | |
parent | 267e2d87fc1b2f934b7a227ecaa717730807e176 (diff) | |
download | external-libdrm-2f9aea0661550a43c3d2ac33a5bc286870edd34e.tar.gz external-libdrm-2f9aea0661550a43c3d2ac33a5bc286870edd34e.tar.xz external-libdrm-2f9aea0661550a43c3d2ac33a5bc286870edd34e.zip |
libdrm: Avoid additional drm open closeandroid-p-preview-1android-o-mr1-iot-preview-8android-o-mr1-iot-preview-7android-n-iot-release-lg-thinq-wk7
Avoid additional drm device open and close.
Bug: 72380158
Change-Id: I9475a23bbd1e011e637ece75321e3cda1e117e7e
CRs-fixed: 2135104
-rw-r--r-- | xf86drm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -751,8 +751,8 @@ int drmOpen(const char *name, const char *busid) | |||
751 | */ | 751 | */ |
752 | int drmOpenWithType(const char *name, const char *busid, int type) | 752 | int drmOpenWithType(const char *name, const char *busid, int type) |
753 | { | 753 | { |
754 | if (!drmAvailable() && name != NULL && drm_server_info && | 754 | if (name != NULL && drm_server_info && |
755 | drm_server_info->load_module) { | 755 | drm_server_info->load_module && !drmAvailable()) { |
756 | /* try to load the kernel module */ | 756 | /* try to load the kernel module */ |
757 | if (!drm_server_info->load_module(name)) { | 757 | if (!drm_server_info->load_module(name)) { |
758 | drmMsg("[drm] failed to load kernel module \"%s\"\n", name); | 758 | drmMsg("[drm] failed to load kernel module \"%s\"\n", name); |