diff options
author | Prabhanjan Kandula | 2018-01-25 20:02:07 -0600 |
---|---|---|
committer | android-build-merger | 2018-01-25 20:02:07 -0600 |
commit | 8965152a5b26a0063c9070d42f95769ddc5b97c3 (patch) | |
tree | 623e93615f5d2adf0626fb4cd6701137e54d5b6e | |
parent | bab2e89478d2896c778a7229f485cad2a47345dd (diff) | |
parent | 07ee0cb4eb852673dffad4e7878c52ea0670511e (diff) | |
download | external-libdrm-8965152a5b26a0063c9070d42f95769ddc5b97c3.tar.gz external-libdrm-8965152a5b26a0063c9070d42f95769ddc5b97c3.tar.xz external-libdrm-8965152a5b26a0063c9070d42f95769ddc5b97c3.zip |
libdrm: Avoid additional drm open close am: 2f9aea0661 am: 2e11de7a20
am: 07ee0cb4eb
Change-Id: Icd4bd54f446b84892540a804acbef2deb67fe41c
-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); |