forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/fs/lockd/svcsubs.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * linux/fs/lockd/svcsubs.c
34 *
....@@ -179,7 +180,7 @@
179180 /* update current lock count */
180181 file->f_locks++;
181182
182
- lockhost = (struct nlm_host *) fl->fl_owner;
183
+ lockhost = ((struct nlm_lockowner *)fl->fl_owner)->host;
183184 if (match(lockhost, host)) {
184185 struct file_lock lock = *fl;
185186