Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2015 15:39:35 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284450 - head/sys/dev/atkbdc
Message-ID:  <201506161539.t5GFdZcq036916@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Jun 16 15:39:34 2015
New Revision: 284450
URL: https://svnweb.freebsd.org/changeset/base/284450

Log:
  Fix miss from r284320.
  
  Coverity:	1018895

Modified:
  head/sys/dev/atkbdc/psm.c

Modified: head/sys/dev/atkbdc/psm.c
==============================================================================
--- head/sys/dev/atkbdc/psm.c	Tue Jun 16 15:14:40 2015	(r284449)
+++ head/sys/dev/atkbdc/psm.c	Tue Jun 16 15:39:34 2015	(r284450)
@@ -5102,7 +5102,7 @@ enable_trackpoint(struct psm_softc *sc, 
 	id = read_aux_data(kbdc);
 	if (id < 0x01)
 		return (FALSE);
-	if (sc != NULL)
+	if (arg == PROBE)
 		sc->tphw = id;
 	if (!trackpoint_support)
 		return (FALSE);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506161539.t5GFdZcq036916>