Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Mar 2011 09:41:25 +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:  <201103120941.p2C9fjfn077331@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
bz          2011-03-12 09:41:25 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet6         nd6_nbr.c 
  Log:
  SVN rev 219562 on 2011-03-12 09:41:25Z by bz
  
  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.
  
  PR:             kern/151908
  Submitted by:   chenyl (netstar2008 126.com) (initial version)
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.79      +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?201103120941.p2C9fjfn077331>