| .. | .. |
|---|
| 82 | 82 | .version = NSM_VERSION, |
|---|
| 83 | 83 | .authflavor = RPC_AUTH_NULL, |
|---|
| 84 | 84 | .flags = RPC_CLNT_CREATE_NOPING, |
|---|
| 85 | + .cred = current_cred(), |
|---|
| 85 | 86 | }; |
|---|
| 86 | 87 | |
|---|
| 87 | 88 | return rpc_create(&args); |
|---|
| .. | .. |
|---|
| 275 | 276 | { |
|---|
| 276 | 277 | struct nsm_handle *new; |
|---|
| 277 | 278 | |
|---|
| 279 | + if (!hostname) |
|---|
| 280 | + return NULL; |
|---|
| 281 | + |
|---|
| 278 | 282 | new = kzalloc(sizeof(*new) + hostname_len + 1, GFP_KERNEL); |
|---|
| 279 | 283 | if (unlikely(new == NULL)) |
|---|
| 280 | 284 | return NULL; |
|---|
| .. | .. |
|---|
| 416 | 420 | /* |
|---|
| 417 | 421 | * XDR functions for NSM. |
|---|
| 418 | 422 | * |
|---|
| 419 | | - * See http://www.opengroup.org/ for details on the Network |
|---|
| 423 | + * See https://www.opengroup.org/ for details on the Network |
|---|
| 420 | 424 | * Status Monitor wire protocol. |
|---|
| 421 | 425 | */ |
|---|
| 422 | 426 | |
|---|