Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/drm Check property length, not array (...



details:   https://anonhg.NetBSD.org/src/rev/30e5ec7f6858
branches:  trunk
changeset: 451721:30e5ec7f6858
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri May 31 20:25:58 2019 +0000

description:
Check property length, not array (fixes clang build)

diffstat:

 sys/external/bsd/drm2/drm/drmfb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f4b97dd5593a -r 30e5ec7f6858 sys/external/bsd/drm2/drm/drmfb.c
--- a/sys/external/bsd/drm2/drm/drmfb.c Fri May 31 16:38:27 2019 +0000
+++ b/sys/external/bsd/drm2/drm/drmfb.c Fri May 31 20:25:58 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drmfb.c,v 1.6 2019/05/31 10:47:48 jmcneill Exp $       */
+/*     $NetBSD: drmfb.c,v 1.7 2019/05/31 20:25:58 jmcneill Exp $       */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drmfb.c,v 1.6 2019/05/31 10:47:48 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drmfb.c,v 1.7 2019/05/31 20:25:58 jmcneill Exp $");
 
 #ifdef _KERNEL_OPT
 #include "vga.h"
@@ -140,7 +140,7 @@
                struct drm_connector *connector =
                    da->da_fb_helper->connector_info[n]->connector;
                struct drm_property_blob *edid = connector->edid_blob_ptr;
-               if (edid && edid->data) {
+               if (edid && edid->length) {
                        prop_data_t edid_data =
                            prop_data_create_data(edid->data, edid->length);
                        prop_dictionary_set(dict, "EDID", edid_data);



Home | Main Index | Thread Index | Old Index