diff options
Diffstat (limited to 'fs/lockd/svclock.c')
-rw-r--r-- | fs/lockd/svclock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c index 93c00ee7189d..3127ae9e435c 100644 --- a/fs/lockd/svclock.c +++ b/fs/lockd/svclock.c | |||
@@ -179,7 +179,7 @@ nlmsvc_create_block(struct svc_rqst *rqstp, struct nlm_file *file, | |||
179 | struct nlm_rqst *call = NULL; | 179 | struct nlm_rqst *call = NULL; |
180 | 180 | ||
181 | /* Create host handle for callback */ | 181 | /* Create host handle for callback */ |
182 | host = nlmsvc_lookup_host(rqstp); | 182 | host = nlmsvc_lookup_host(rqstp, lock->caller, lock->len); |
183 | if (host == NULL) | 183 | if (host == NULL) |
184 | return NULL; | 184 | return NULL; |
185 | 185 | ||
@@ -451,6 +451,7 @@ nlmsvc_testlock(struct nlm_file *file, struct nlm_lock *lock, | |||
451 | (long long)conflock->fl.fl_start, | 451 | (long long)conflock->fl.fl_start, |
452 | (long long)conflock->fl.fl_end); | 452 | (long long)conflock->fl.fl_end); |
453 | conflock->caller = "somehost"; /* FIXME */ | 453 | conflock->caller = "somehost"; /* FIXME */ |
454 | conflock->len = strlen(conflock->caller); | ||
454 | conflock->oh.len = 0; /* don't return OH info */ | 455 | conflock->oh.len = 0; /* don't return OH info */ |
455 | conflock->svid = conflock->fl.fl_pid; | 456 | conflock->svid = conflock->fl.fl_pid; |
456 | return nlm_lck_denied; | 457 | return nlm_lck_denied; |