Skip to content

Commit

Permalink
fbsd/ena: Stop checking for failures from malloc(M_WAITOK)
Browse files Browse the repository at this point in the history
Backport upstream commit [1] to  ena driver.

[1] commit 51971340bd3f ("ena(4): Stop checking for failures from malloc(M_WAITOK)")

Signed-off-by: Osama Abboud <[email protected]>
  • Loading branch information
osamaabb committed Nov 20, 2024
1 parent 35a4b29 commit 9df1b2f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kernel/fbsd/ena/ena_rss.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,12 +320,9 @@ ena_rss_indir_init(struct ena_adapter *adapter)
struct ena_indir *indir = adapter->rss_indir;
int rc;

if (indir == NULL) {
if (indir == NULL)
adapter->rss_indir = indir = malloc(sizeof(struct ena_indir),
M_DEVBUF, M_WAITOK | M_ZERO);
if (indir == NULL)
return (ENOMEM);
}

rc = ena_rss_indir_get(adapter, indir->table);
if (rc != 0) {
Expand Down

0 comments on commit 9df1b2f

Please sign in to comment.