diff options
Diffstat (limited to 'drivers/base/devtmpfs.c')
-rw-r--r-- | drivers/base/devtmpfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index 6d678c99512e..b89fffc1d777 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c | |||
@@ -406,9 +406,10 @@ static int devtmpfsd(void *p) | |||
406 | requests = NULL; | 406 | requests = NULL; |
407 | spin_unlock(&req_lock); | 407 | spin_unlock(&req_lock); |
408 | while (req) { | 408 | while (req) { |
409 | struct req *next = req->next; | ||
409 | req->err = handle(req->name, req->mode, req->dev); | 410 | req->err = handle(req->name, req->mode, req->dev); |
410 | complete(&req->done); | 411 | complete(&req->done); |
411 | req = req->next; | 412 | req = next; |
412 | } | 413 | } |
413 | spin_lock(&req_lock); | 414 | spin_lock(&req_lock); |
414 | } | 415 | } |