Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm ...
details: https://anonhg.NetBSD.org/src/rev/7eab941f4f04
branches: netbsd-7
changeset: 799798:7eab941f4f04
user: snj <snj%NetBSD.org@localhost>
date: Thu Feb 11 23:29:28 2016 +0000
description:
Pull up following revision(s) (requested by riastradh in ticket #1112):
sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_temp.c: revision 1.2
More useful array bounds check for enum values.
diffstat:
sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_temp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ee6a241a5e2d -r 7eab941f4f04 sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_temp.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_temp.c Thu Feb 11 23:28:05 2016 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/core/subdev/therm/nouveau_subdev_therm_temp.c Thu Feb 11 23:29:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nouveau_subdev_therm_temp.c,v 1.1.1.1 2014/08/06 12:36:32 riastradh Exp $ */
+/* $NetBSD: nouveau_subdev_therm_temp.c,v 1.1.1.1.4.1 2016/02/11 23:29:28 snj Exp $ */
/*
* Copyright 2012 The Nouveau community
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_therm_temp.c,v 1.1.1.1 2014/08/06 12:36:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_subdev_therm_temp.c,v 1.1.1.1.4.1 2016/02/11 23:29:28 snj Exp $");
#include "priv.h"
@@ -104,7 +104,7 @@
};
int temperature = therm->temp_get(therm);
- if (thrs < 0 || thrs > 3)
+ if ((unsigned)thrs >= __arraycount(thresolds))
return;
if (dir == NOUVEAU_THERM_THRS_FALLING)
Home |
Main Index |
Thread Index |
Old Index