forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
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;