Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Apr 2011 12:11:19 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/netinet6 nd6_nbr.c
Message-ID:  <201104091211.p39CBdLs054621@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
bz          2011-04-09 12:11:19 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sys/netinet6         nd6_nbr.c 
  Log:
  SVN rev 220487 on 2011-04-09 12:11:19Z by bz
  
  MFC r219562:
  
    Make sure the locally cached value of rt->rt_gateway stays stable,
    even after dropping the reference and unlocking. Previously we
    have dereferenced a NULL pointer (after r121765).
    Simply unlocking after the block does not work either because of
    lock ordering (see r121765) and in addition we would still hold
    a pointer to something that might be gone by the time we access it.
    Thus take a copy of the value rather than just caching the pointer.
  
    Submitted by: chenyl (netstar2008 126.com) (initial version)
  PR:             kern/151908
  
  Revision  Changes    Path
  1.69.2.6  +14 -7     src/sys/netinet6/nd6_nbr.c



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