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/dist/drm/nouveau Sanity-check that the...
details: https://anonhg.NetBSD.org/src/rev/5e8cf6e2e29d
branches: trunk
changeset: 344824:5e8cf6e2e29d
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Apr 22 20:17:59 2016 +0000
description:
Sanity-check that the encoder we found is not null.
I think the previous code guarantees that finding this encoder should
work, so this should be a moot point.
CID 145720
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/nouveau_connector.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 6c85255807c3 -r 5e8cf6e2e29d sys/external/bsd/drm2/dist/drm/nouveau/nouveau_connector.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_connector.c Fri Apr 22 19:52:56 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nouveau_connector.c Fri Apr 22 20:17:59 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_connector.c,v 1.2 2014/08/06 15:01:33 riastradh Exp $ */
+/* $NetBSD: nouveau_connector.c,v 1.3 2016/04/22 20:17:59 riastradh Exp $ */
/*
* Copyright (C) 2008 Maarten Maathuis.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_connector.c,v 1.2 2014/08/06 15:01:33 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_connector.c,v 1.3 2016/04/22 20:17:59 riastradh Exp $");
#include <acpi/button.h>
@@ -308,6 +308,7 @@
type = DCB_OUTPUT_ANALOG;
nv_encoder = find_encoder(connector, type);
+ BUG_ON(nv_encoder == NULL);
}
nouveau_connector_set_encoder(connector, nv_encoder);
Home |
Main Index |
Thread Index |
Old Index