diff options
author | Andrew F. Davis | 2019-06-11 16:12:12 -0500 |
---|---|---|
committer | Andrew F. Davis | 2019-06-28 10:32:54 -0500 |
commit | 3f46d1c811b28db42bd32a31a115770469c7c2cb (patch) | |
tree | 3a7de24e83adbfec8112e86e21129aae389c3f57 | |
parent | 27d8ef020a4fa9482069d2d84c6028c9aaa7c760 (diff) | |
download | hardware-ti-am65x-3f46d1c811b28db42bd32a31a115770469c7c2cb.tar.gz hardware-ti-am65x-3f46d1c811b28db42bd32a31a115770469c7c2cb.tar.xz hardware-ti-am65x-3f46d1c811b28db42bd32a31a115770469c7c2cb.zip |
libhwcomposer: Check length of uevent description not HDMI uevent path
The HDMI uevent path does not change, what we want to check here is that
the next uevent_desc has a valid length.
Signed-off-by: Andrew F. Davis <afd@ti.com>
-rw-r--r-- | libhwcomposer/hwc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index eac7ffc..14eda8a 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp | |||
@@ -362,7 +362,7 @@ static void hwc_hdmi_thread(void* data) | |||
362 | if (pfds[0].revents & POLLIN) { | 362 | if (pfds[0].revents & POLLIN) { |
363 | /* keep last 2 zeroes to ensure double 0 termination */ | 363 | /* keep last 2 zeroes to ensure double 0 termination */ |
364 | uevent_next_event(uevent_desc, sizeof(uevent_desc) - 2); | 364 | uevent_next_event(uevent_desc, sizeof(uevent_desc) - 2); |
365 | if (strlen(hdmi_uevent_path) <= 0 || strcmp(uevent_desc, hdmi_uevent_path)) | 365 | if (strlen(uevent_desc) <= 0 || strcmp(uevent_desc, hdmi_uevent_path)) |
366 | continue; /* event not for us */ | 366 | continue; /* event not for us */ |
367 | 367 | ||
368 | state = check_hotplug_status(hwc_dev, state); | 368 | state = check_hotplug_status(hwc_dev, state); |