hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
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;