aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/atkbdc
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2018-03-06 20:31:14 +0000
committerConrad Meyer <cem@FreeBSD.org>2018-03-06 20:31:14 +0000
commit015ab098439452cb798dbea5dd2d4fe57c72808c (patch)
tree3e18c47fa79472618358d0926cadc5cc07c6a267 /sys/dev/atkbdc
parent36cbb006f232abed9b70f352b5163d74b99a884c (diff)
downloadsrc-015ab098439452cb798dbea5dd2d4fe57c72808c.tar.gz
src-015ab098439452cb798dbea5dd2d4fe57c72808c.zip
psm(4): Initialize variables before use
dxp/dyp could have been used uninitialized in the subsequent debugging log invocation. Reported by: Coverity Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=330546
Diffstat (limited to 'sys/dev/atkbdc')
-rw-r--r--sys/dev/atkbdc/psm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/atkbdc/psm.c b/sys/dev/atkbdc/psm.c
index cb77672ac5a5..0b6a061e15b5 100644
--- a/sys/dev/atkbdc/psm.c
+++ b/sys/dev/atkbdc/psm.c
@@ -3781,6 +3781,9 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, int nfingers,
if (queue_len < gest->window_min)
return;
+ dyp = -1;
+ dxp = -1;
+
/* Is a scrolling action occurring? */
if (!gest->in_taphold && !ms->button &&
(!gest->in_vscroll || two_finger_scroll)) {