Date: Thu, 27 Jan 2011 19:08:01 +0000 (UTC) From: Remko Lodder <remko@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r217957 - stable/7/usr.sbin/pstat Message-ID: <201101271908.p0RJ81X8030417@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: remko Date: Thu Jan 27 19:08:01 2011 New Revision: 217957 URL: http://svn.freebsd.org/changeset/base/217957 Log: MFC r178987 Fix pstat behaviour when using coredumps. The reference to tp was incorrect and should have been poining to &tty, tp is a virtual address from the coredump, while we should obtain the address through the tty struct. Approved by: imp (mentor, implicit trivial changes) MFC after: 1 week Submitted by: Ed Schouten (ed at 80836 dot nl) PR: 138131 Modified: stable/7/usr.sbin/pstat/pstat.c Directory Properties: stable/7/usr.sbin/pstat/ (props changed) Modified: stable/7/usr.sbin/pstat/pstat.c ============================================================================== --- stable/7/usr.sbin/pstat/pstat.c Thu Jan 27 19:05:43 2011 (r217956) +++ stable/7/usr.sbin/pstat/pstat.c Thu Jan 27 19:08:01 2011 (r217957) @@ -246,7 +246,7 @@ ttymode_kvm(void) XT_COPY(olowat); #undef XT_COPY ttyprt(&xt); - tp = TAILQ_NEXT(tp, t_list); + tp = TAILQ_NEXT(&tty, t_list); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101271908.p0RJ81X8030417>