dont dereference root if mount fails
if mount failed and mount upcall was canceled cancle_mount() function tries to dereference an invalid handle value
This commit is contained in:
parent
0d0cee6ad6
commit
939db9c80b
1 changed files with 2 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ out:
|
|||
|
||||
static void cancel_mount(IN nfs41_upcall *upcall)
|
||||
{
|
||||
if (upcall->root_ref != INVALID_HANDLE_VALUE)
|
||||
nfs41_root_deref(upcall->root_ref);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue