summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-08-24 13:00:14 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-08-24 13:00:14 +0200
commitd404e9e9f8250f740bacb0b30d586ea1ad808015 (patch)
treef8e93250684eda8555479962b7ae9e14e79663fc /lib
parent80a5bfc1d812618d4f6a16eb29026f412df7b56c (diff)
downloadplan9front-d404e9e9f8250f740bacb0b30d586ea1ad808015.tar.xz
devmnt: more carefull wakeup in mountmux
once we set q->done = 1 in mountmux, the sleeper might return freeing q so the wakeup might access invalid memory. we change the embedded Rendez structure in the Mntrpc into a pointer to the sleeping procs up->sleep rendez so the rendez is always going to be valid even if the rpc has been freed. the call to mntstats was moved before we set q->done also to prevent accessing invalid memory.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions