ioctx::lock was not initialized properly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11594 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -621,9 +621,15 @@ get_cur_ioctx(void)
|
||||
static ioctx io;
|
||||
|
||||
if (init == 0) {
|
||||
init = 1;
|
||||
int error;
|
||||
memset(&io, 0, sizeof(io));
|
||||
}
|
||||
|
||||
error = new_lock(&io.lock, "IO context");
|
||||
if (error < 0)
|
||||
PANIC("Failed to init IO context lock: %s\n", fs_strerror(error));
|
||||
|
||||
init = 1;
|
||||
}
|
||||
|
||||
return &io;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user