hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
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;