mirror of https://github.com/torvalds/linux.git
In `UVERBS_METHOD_CQ_CREATE`, umem should be released if anything goes
wrong. Currently, if `create_cq_umem` fails, umem would not be
released or referenced, causing a possible leak.
In this patch, we release umem at `UVERBS_METHOD_CQ_CREATE`, the driver
should not release umem if it returns an error code.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| efa.h | ||
| efa_admin_cmds_defs.h | ||
| efa_admin_defs.h | ||
| efa_com.c | ||
| efa_com.h | ||
| efa_com_cmd.c | ||
| efa_com_cmd.h | ||
| efa_common_defs.h | ||
| efa_io_defs.h | ||
| efa_main.c | ||
| efa_regs_defs.h | ||
| efa_verbs.c | ||