Commit 75740281 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Pavel Emelyanov

files: BUG on reopening already opened fle

This point we think it's a first call of open(),
so the state must be FLE_INITIALIZED.

v6: New
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 5688335c
......@@ -1062,6 +1062,7 @@ static int open_fd(int pid, struct fdinfo_list_entry *fle)
return -1;
}
BUG_ON(fle->stage != FLE_INITIALIZED);
fle->stage = FLE_OPEN;
return serve_out_fd(pid, fle->fe->fd, d);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment