forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/fs/lockd/mon.c
....@@ -276,6 +276,9 @@
276276 {
277277 struct nsm_handle *new;
278278
279
+ if (!hostname)
280
+ return NULL;
281
+
279282 new = kzalloc(sizeof(*new) + hostname_len + 1, GFP_KERNEL);
280283 if (unlikely(new == NULL))
281284 return NULL;