fix devtmpfs race
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 25 Jul 2011 18:15:50 +0000 (14:15 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 25 Jul 2011 18:15:50 +0000 (14:15 -0400)
commite13889bab3c6b5c839075086d28fe05f71984dda
tree4b2931575f48186533848f36a7c80809ea929097
parenteda65cc6ce2a45dc01c233e301e59cd7a0f763ad
fix devtmpfs race

After we's done complete(&req->done), there's nothing to prevent the
scope containing *req from being gone and *req overwritten by any
kind of junk.  So we must read req->next before that...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/base/devtmpfs.c