kernel/fs/lockd/mon.c
.. .. @@ -276,6 +276,9 @@ 276 276 { 277 277 struct nsm_handle *new; 278 278 279 + if (!hostname)280 + return NULL;281 +279 282 new = kzalloc(sizeof(*new) + hostname_len + 1, GFP_KERNEL); 280 283 if (unlikely(new == NULL)) 281 284 return NULL;