hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/fs/lockd/mon.c
....@@ -82,6 +82,7 @@
8282 .version = NSM_VERSION,
8383 .authflavor = RPC_AUTH_NULL,
8484 .flags = RPC_CLNT_CREATE_NOPING,
85
+ .cred = current_cred(),
8586 };
8687
8788 return rpc_create(&args);
....@@ -275,6 +276,9 @@
275276 {
276277 struct nsm_handle *new;
277278
279
+ if (!hostname)
280
+ return NULL;
281
+
278282 new = kzalloc(sizeof(*new) + hostname_len + 1, GFP_KERNEL);
279283 if (unlikely(new == NULL))
280284 return NULL;
....@@ -416,7 +420,7 @@
416420 /*
417421 * XDR functions for NSM.
418422 *
419
- * See http://www.opengroup.org/ for details on the Network
423
+ * See https://www.opengroup.org/ for details on the Network
420424 * Status Monitor wire protocol.
421425 */
422426