MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xlp_free_cmd_params

Function xlp_free_cmd_params

freebsd/mips/nlm/dev/sec/nlmrsa.c:319–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317 */
318
319static void
320xlp_free_cmd_params(struct xlp_rsa_command *cmd)
321{
322
323 if (cmd == NULL)
324 return;
325 if (cmd->rsasrc != NULL) {
326 if (cmd->krp == NULL) /* Micro code load */
327 contigfree(cmd->rsasrc, sizeof(nlm_rsa_ucode_data),
328 M_DEVBUF);
329 else
330 free(cmd->rsasrc, M_DEVBUF);
331 }
332 free(cmd, M_DEVBUF);
333}
334
335static int
336xlp_get_rsa_opsize(struct xlp_rsa_command *cmd, unsigned int bits)

Callers 3

xlp_rsa_initFunction · 0.70
xlp_rsa_kprocessFunction · 0.70

Calls 2

contigfreeFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected