mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
cxgbe(4): Zero out the memory allocated for the debug dump.
cudbg_collect seems to expect it this way. MFC after: 1 week Sponsored by: Chelsio Communications
This commit is contained in:
parent
83d33b2bb5
commit
e3d00a3e03
1 changed files with 1 additions and 1 deletions
|
|
@ -9191,7 +9191,7 @@ cudbg_dump(struct adapter *sc, struct t4_cudbg_dump *dump)
|
|||
void *handle, *buf;
|
||||
|
||||
/* buf is large, don't block if no memory is available */
|
||||
buf = malloc(dump->len, M_CXGBE, M_NOWAIT);
|
||||
buf = malloc(dump->len, M_CXGBE, M_NOWAIT | M_ZERO);
|
||||
if (buf == NULL)
|
||||
return (ENOMEM);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue